summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)AuthorFilesLines
2009-08-14v4l2src: fix 'hang' with some cameras caused by bad timestamping if no ↵Hans de Goede1-9/+11
framerate is available For cameras/drivers that don't support e.g. VIDIOC_G_PARM we'd end up without a framerate and would try to divide by 0, causing run-time warnings and all frames to be timestamped with 0, which makes sinks that sync against the clock drop them, causing 'hangs' (observed with the pwc driver and a Logitech QuickCam Pro 4000). So if we do not know the framerate, simply don't adjust the timestamps. Fixes #591451.
2009-08-14v4l2src: clear format list in READY->NULLFilippo Argiolas2-0/+9
Clear format list and probed caps when going to NULL so if a new device is set we'll probe the formats again instead of using previously detected ones. Fixes bug #591747.
2009-08-11v4l2: fix make distcheck by disting some more headersTim-Philipp Müller1-4/+11
2009-08-09v4l2src: if max == min width/height put an int in the probed caps, not an ↵Tim-Philipp Müller1-8/+15
int range Fixes #560033.
2009-08-09osxaudiosrc: if max_channels == min_channels, use an int instead of an int ↵Tim-Philipp Müller1-3/+6
range in the caps
2009-08-04v4l2: Directly use GST_PTR_FORMAT for printing caps with the LOG_CAPS macroSebastian Dröge1-9/+1
2009-08-04v4l2: Remove some OMAP specific hacksSebastian Dröge2-38/+1
They require special build flags and are not useful in general.
2009-08-04v4l2sink: change where buffers get dequeuedRob Clark4-52/+38
It seems to cause strange occasional high latencies (almost 200ms) when dequeuing buffers from _buffer_alloc(). It is simpler and seems to work much better to dqbuf from the same thread that is queuing the next buffer.
2009-08-04v4l2: Add v4l2sink elementRob Clark14-1824/+3051
This also does the following changes: (1) pull the bufferpool code out into gstv4l2bufferpool.c, and make a bit more generic so it can be used both for v4l2src and v4l2sink (2) move some of the device probing/configuration/caps stuff into gstv4l2object.c so it does not have to be duplicated between v4l2src and v4l2sink Fixes bug #590280.
2009-07-19v4l2: Fix v4l2src on OpenSolarisElaine Xiong4-8/+25
The v4l2 driver for USB webcams on OpenSolaris does not support select() calls. Detect when select() fails, and skip polling the device afterward, which restores the pre 0.10.14 behaviour on OpenSolaris. Signed-off-by: Jan Schmidt <thaytan@noraisin.net>
2009-07-13v4l2src: optional support for device probing with gudevFilippo Argiolas2-8/+83
Enumerate v4l2 devices using gudev if available. Fixes bug #583640.
2009-06-25waveformsink: use 'guint8' instead of 'byte' to fix compilation with MSVC8Tim-Philipp Müller1-1/+1
We need a cast here for pointer arithmetic to work correctly, but some MSVC versions don't seem to like 'byte', so use guint8 here. Hopefully fixes #585361.
2009-06-25v4l2src: set structs to zero before using them in ioctlsStefan Kost1-5/+5
This fixes valgrind warnings.
2009-06-22v4l2: open/close the device in READYStefan Kost1-9/+39
This allows to query the device in READY. Before one need to switch it to PAUSED and that also starts streaming.
2009-06-05sunaudio: Fix switch setting on some devices. Add debug. Fix a FIXME.Jan Schmidt3-21/+42
Fix the setting of toggle switches on some broken audio drivers which report that no audio ports are settable by ignoring the mod_port field there. Add some debug statements. Fix a FIXME now that Good relies on a new enough gst-plugins-base.
2009-06-05sunaudio: Support new flags for options and actionsJan Schmidt7-111/+583
Use new audio mixer flags added in Base 0.10.23 to expose flags and options on the SunAudio devices. Fixes: #583593 Patch By: Brian Cameron <brian.cameron@sun.com> Patch By: Garrett D'Amore <garrett.damore@sun.com>
2009-05-26v4l2: cleanup and commentingStefan Kost2-48/+17
Remove newlines inserted by gst-indent once. Remove unused var from instance struct. Add comments. Add another #define for default property value.
2009-05-16Moved 'directdraw' from -good to -badJan Schmidt5-2153/+2
2009-05-15Fix compiler warningsJames Andrewartha4-8/+10
Fixes bug #582715.
2009-04-18osxringbuffer: Run gst-indent.Edward Hervey1-1/+3
2009-04-18ximage: Remove dead assignments.Edward Hervey1-3/+0
Those variables are not read after that point.
2009-04-18Remove trivial unused variables detected by CLang static analyzer.Edward Hervey1-4/+1
2009-04-18Remove unused variables in _class_initEdward Hervey2-8/+0
Detected by LLVM's CLang static analyzer
2009-04-15sunaudio: fix broken indentation of variable declarationsTim-Philipp Müller1-13/+0
2009-04-15sunaudio: remove some unused variables and goto labelsJames Andrewartha2-9/+0
Fixes #579070.
2009-03-25v4l2src: move duplicated timestamping and buffer metadata code to _create()Stefan Kost2-68/+42
This will include the latency changes also in the mmap case.
2009-03-25v4l2src: remove win32 ifdefs introduced by commit ↵Stefan Kost2-10/+0
cff3f46760eac74c9bbd7a36aca44fedf327424b V4l2src is under sys and does not exists/run under windows anyway.
2009-03-15v4l2src: log details if we have them, needed for #575391Stefan Kost1-2/+2
2009-03-13v4l2src: Prepend to lists and reverse them at the end.Jan Schmidt1-3/+7
Gratuitous micro-optimisation - prepend to lists and reverse them, rather than appending to them each time.
2009-03-06v4l2src: fix pads, so that they are subset of template capsStefan Kost1-4/+9
Do not add w=0 | h=0. When we can't get a framerate add fraction range.
2009-03-01Remove hardcoded definition of OBJCDavid Schleef1-2/+0
2009-03-01Wait for a frame to become available before capturing itSjoerd Simons5-2/+95
Use GstPoll to wait for the fd of the video device to become readable before trying to capture a frame. This speeds up stopping v4l2src a lot as it no longer has to wait for the next frame, especially when capturing with low framerates or when the video device just never generates a frame (which seems a common issue for uvcvideo devices) Fixes bug #563574.
2009-02-27directdrawsink: Fix type mismatchesLRN1-5/+5
Fixes bug #573343.
2009-02-23Conditionally compile code for YVYUWim Taymans1-0/+2
Only compile the code for the YVYU format when the format is actually defined. Spotted by tmatth on IRC.
2009-02-23v4l2src: Make sort_by_frame_size conditionally compiledLevente Farkas1-0/+2
sort_by_frame_size is declared static and only used inside an ifdef, so use the same ifdef to define the function. Fixes #572185 Signed-off-by: David Schleef <ds@schleef.org>
2009-02-23Add YVYU format to capsWim Taymans1-0/+15
Add YVYU format to the caps. We don't have anything to handle these caps yet, though.
2009-02-10osxvideosink: Fix build. Fixes #571038Edward Hervey1-8/+7
2009-02-05osxvideosink: remove non-embedded mode and fix memory management.Michael Smith2-349/+66
Remove non-embedded mode. Embed mode becomes default and only mode. embed property is retained for binary compatibility. Added autorelease pools around all objc functions that might be called from a non-main thread.
2009-02-04osxaudio fixes: multichannel and changing caps.Michael Smith1-4/+7
Ensure we create the ringbuffer segment size as a multiple of the bytes per sample (fixes 6-channel output). Reset the segoffset when acquiring the ringbuffer, so we don't retain a bogus offset when caps change.
2009-01-30Fix comparison of the tuner normsBrijesh Singh1-1/+1
The V4L2 tuner norms that a device supports could be a subset of some norm (e.g. NTSC instead of NTSC_M). The comparison should be done by & instead of ==. See http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-single/v4l2.html#STANDARD Fixes bug #569820.
2009-01-29Remove version numbers from a few gst-launch examples.Stefan Kost5-7/+7
The majority of the examples doe not use -0.10 and this will also help us to maintain the docs.
2009-01-29Update and add documentation for platform specific plugins (sys).Stefan Kost15-169/+92
Link to properties. Correct titles for examples. Fix examples.
2009-01-20sys/v4l2/gstv4l2src.c: Fix error code (the message string also needs love, ↵GIT_CONVERSIONTim-Philipp Müller1-1/+1
but not today). Original commit message from CVS: * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_read): Fix error code (the message string also needs love, but not today).
2009-01-15sys/osxaudio/Makefile.am: Link against CoreServices (needed for osx 10.4) ↵Michael Smith1-1/+1
and fix up the linker flags. Fixes #567853. Original commit message from CVS: * sys/osxaudio/Makefile.am: Link against CoreServices (needed for osx 10.4) and fix up the linker flags. Fixes #567853.
2009-01-13sys/osxaudio/Makefile.am: osxaudio plugin now requires AudioUnit framework, ↵Michael Smith1-16/+16
so link against that. Original commit message from CVS: * sys/osxaudio/Makefile.am: osxaudio plugin now requires AudioUnit framework, so link against that. Clean up tabs v spaces while I'm there.
2009-01-07sys/v4l2/gstv4l2src.c: Remove () from translateable string, so that it makes ↵Jan Schmidt1-1/+1
more sense. Original commit message from CVS: * sys/v4l2/gstv4l2src.c: Remove () from translateable string, so that it makes more sense.
2009-01-05sys/v4l2/gstv4l2src.c: Add support for grayscale v4l2 devices. Fixes bug ↵Sascha Hauer1-0/+5
#566616. Original commit message from CVS: Patch by: Sascha Hauer <s dot hauer at pengutronix dot de> Luotao Fu <l dot fu at pengutronix dot de> * sys/v4l2/gstv4l2src.c: (gst_v4l2src_v4l2fourcc_to_structure), (gst_v4l2_get_caps_info): Add support for grayscale v4l2 devices. Fixes bug #566616.
2009-01-02sys/osxaudio/: Rewrite osxaudio to work more flexibly and more reliably, ↵Justin Karnegas9-451/+723
using a different abstraction layer of corea... Original commit message from CVS: Patch by: Justin Karnegas <justin@affinix.com> and Michael Smith <msmith@songbirdnest.com> * sys/osxaudio/gstosxaudio.c: * sys/osxaudio/gstosxaudioelement.c: * sys/osxaudio/gstosxaudioelement.h: * sys/osxaudio/gstosxaudiosink.c: * sys/osxaudio/gstosxaudiosink.h: * sys/osxaudio/gstosxaudiosrc.c: * sys/osxaudio/gstosxaudiosrc.h: * sys/osxaudio/gstosxringbuffer.c: * sys/osxaudio/gstosxringbuffer.h: Rewrite osxaudio to work more flexibly and more reliably, using a different abstraction layer of coreaudio that is the recommended way of doing low-level audio I/O on OSX. Fixes byg #564948.
2008-12-07sys/sunaudio/gstsunaudiomixerctrl.c: Set the mixer fd before calling ioctl() ↵Brian Cameron1-1/+2
on it. Fixes bug #563414. Original commit message from CVS: Patch by: Brian Cameron <brian.cameron at sun dot com> * sys/sunaudio/gstsunaudiomixerctrl.c: (gst_sunaudiomixer_ctrl_open): Set the mixer fd before calling ioctl() on it. Fixes bug #563414.
2008-11-20sys/osxvideo/osxvideosink.*: Handle video window resizing more correctly, ↵Michael Smith2-25/+24
avoiding crashes when embedding the window ... Original commit message from CVS: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Handle video window resizing more correctly, avoiding crashes when embedding the window and resizing it.