summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* osxringbuffer: Run gst-indent.Edward Hervey2009-04-181-1/+3
|
* ximage: Remove dead assignments.Edward Hervey2009-04-181-3/+0
| | | | Those variables are not read after that point.
* Remove trivial unused variables detected by CLang static analyzer.Edward Hervey2009-04-181-4/+1
|
* Remove unused variables in _class_initEdward Hervey2009-04-182-8/+0
| | | | Detected by LLVM's CLang static analyzer
* sunaudio: fix broken indentation of variable declarationsTim-Philipp Müller2009-04-151-13/+0
|
* sunaudio: remove some unused variables and goto labelsJames Andrewartha2009-04-152-9/+0
| | | | Fixes #579070.
* v4l2src: move duplicated timestamping and buffer metadata code to _create()Stefan Kost2009-03-252-68/+42
| | | | This will include the latency changes also in the mmap case.
* v4l2src: remove win32 ifdefs introduced by commit ↵Stefan Kost2009-03-252-10/+0
| | | | | | cff3f46760eac74c9bbd7a36aca44fedf327424b V4l2src is under sys and does not exists/run under windows anyway.
* v4l2src: log details if we have them, needed for #575391Stefan Kost2009-03-151-2/+2
|
* v4l2src: Prepend to lists and reverse them at the end.Jan Schmidt2009-03-131-3/+7
| | | | | Gratuitous micro-optimisation - prepend to lists and reverse them, rather than appending to them each time.
* v4l2src: fix pads, so that they are subset of template capsStefan Kost2009-03-061-4/+9
| | | | Do not add w=0 | h=0. When we can't get a framerate add fraction range.
* Remove hardcoded definition of OBJCDavid Schleef2009-03-011-2/+0
|
* Wait for a frame to become available before capturing itSjoerd Simons2009-03-015-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.
* directdrawsink: Fix type mismatchesLRN2009-02-271-5/+5
| | | | Fixes bug #573343.
* Conditionally compile code for YVYUWim Taymans2009-02-231-0/+2
| | | | | Only compile the code for the YVYU format when the format is actually defined. Spotted by tmatth on IRC.
* v4l2src: Make sort_by_frame_size conditionally compiledLevente Farkas2009-02-231-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>
* Add YVYU format to capsWim Taymans2009-02-231-0/+15
| | | | | Add YVYU format to the caps. We don't have anything to handle these caps yet, though.
* osxvideosink: Fix build. Fixes #571038Edward Hervey2009-02-101-8/+7
|
* osxvideosink: remove non-embedded mode and fix memory management.Michael Smith2009-02-052-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.
* osxaudio fixes: multichannel and changing caps.Michael Smith2009-02-041-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.
* Fix comparison of the tuner normsBrijesh Singh2009-01-301-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.
* Remove version numbers from a few gst-launch examples.Stefan Kost2009-01-295-7/+7
| | | | The majority of the examples doe not use -0.10 and this will also help us to maintain the docs.
* Update and add documentation for platform specific plugins (sys).Stefan Kost2009-01-2915-169/+92
| | | | Link to properties. Correct titles for examples. Fix examples.
* sys/v4l2/gstv4l2src.c: Fix error code (the message string also needs love, ↵Tim-Philipp Müller2009-01-201-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).
* sys/osxaudio/Makefile.am: Link against CoreServices (needed for osx 10.4) ↵Michael Smith2009-01-151-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.
* sys/osxaudio/Makefile.am: osxaudio plugin now requires AudioUnit framework, ↵Michael Smith2009-01-131-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.
* sys/v4l2/gstv4l2src.c: Remove () from translateable string, so that it makes ↵Jan Schmidt2009-01-071-1/+1
| | | | | | | | more sense. Original commit message from CVS: * sys/v4l2/gstv4l2src.c: Remove () from translateable string, so that it makes more sense.
* sys/v4l2/gstv4l2src.c: Add support for grayscale v4l2 devices. Fixes bug ↵Sascha Hauer2009-01-051-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.
* sys/osxaudio/: Rewrite osxaudio to work more flexibly and more reliably, ↵Justin Karnegas2009-01-029-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.
* sys/sunaudio/gstsunaudiomixerctrl.c: Set the mixer fd before calling ioctl() ↵Brian Cameron2008-12-071-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.
* sys/osxvideo/osxvideosink.*: Handle video window resizing more correctly, ↵Michael Smith2008-11-202-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.
* sys/v4l2/v4l2src_calls.c: Turns out we don't always get the frame sizes in a ↵Tim-Philipp Müller2008-11-171-10/+20
| | | | | | | | | | | | | | | predefined order from lowest to highest ... Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format_and_size), (sort_by_frame_size), (gst_v4l2src_probe_caps_for_format): Turns out we don't always get the frame sizes in a predefined order from lowest to highest resolution, so let's just sort the list by frame size once we've queried the possible resolutions rather than assume any particular order. Fixes probed caps for the camera in my HP2133 mini notebook and makes v4l2src default to a decent size.
* sys/v4l2/gstv4l2.c: Give it a primary rank for autovideosrc.Stefan Kost2008-11-141-1/+1
| | | | | | Original commit message from CVS: * sys/v4l2/gstv4l2.c: Give it a primary rank for autovideosrc.
* sys/: Fix some spelling mistakes. Fixes #556802.Fabricio Godoy2008-11-134-4/+4
| | | | | | | | | | Original commit message from CVS: Patch by: Fabricio Godoy <skarllot at gmail dot com> * sys/oss/gstosssink.c: (gst_oss_sink_open): * sys/oss/gstosssrc.c: (gst_oss_src_open): * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_mmap): * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists): Fix some spelling mistakes. Fixes #556802.
* Optionally use libv4l to access v4l2 devices. Fixes bug #545033.Bastien Nocera2008-11-045-47/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: Patch by: Bastien Nocera <hadess at hadess dot net>, Hans de Goede <jwrdegoede at fedoraproject dot org> * configure.ac: * sys/v4l2/Makefile.am: * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_read): * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities), (gst_v4l2_fill_lists), (gst_v4l2_open), (gst_v4l2_close), (gst_v4l2_get_norm), (gst_v4l2_set_norm), (gst_v4l2_get_frequency), (gst_v4l2_set_frequency), (gst_v4l2_signal_strength), (gst_v4l2_get_attribute), (gst_v4l2_set_attribute), (gst_v4l2_get_input), (gst_v4l2_set_input): * sys/v4l2/v4l2_calls.h: * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize), (gst_v4l2_buffer_new), (gst_v4l2_buffer_pool_finalize), (gst_v4l2_buffer_pool_new), (gst_v4l2_buffer_pool_activate), (gst_v4l2src_fill_format_list), (gst_v4l2src_probe_caps_for_format_and_size), (gst_v4l2src_probe_caps_for_format), (gst_v4l2src_grab_frame), (gst_v4l2src_set_capture), (gst_v4l2src_capture_init), (gst_v4l2src_capture_start), (gst_v4l2src_capture_stop), (gst_v4l2src_get_nearest_size): Optionally use libv4l to access v4l2 devices. Fixes bug #545033.
* Don't install static libs for plugins. Fixes #550851 for -good.Stefan Kost2008-11-049-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * ext/aalib/Makefile.am: * ext/annodex/Makefile.am: * ext/cairo/Makefile.am: * ext/dv/Makefile.am: * ext/esd/Makefile.am: * ext/flac/Makefile.am: * ext/gconf/Makefile.am: * ext/gdk_pixbuf/Makefile.am: * ext/hal/Makefile.am: * ext/jpeg/Makefile.am: * ext/ladspa/Makefile.am: * ext/libcaca/Makefile.am: * ext/libmng/Makefile.am: * ext/libpng/Makefile.am: * ext/mikmod/Makefile.am: * ext/pulse/Makefile.am: * ext/raw1394/Makefile.am: * ext/shout2/Makefile.am: * ext/soup/Makefile.am: * ext/speex/Makefile.am: * ext/taglib/Makefile.am: * ext/wavpack/Makefile.am: * gst/alpha/Makefile.am: * gst/apetag/Makefile.am: * gst/audiofx/Makefile.am: * gst/auparse/Makefile.am: * gst/autodetect/Makefile.am: * gst/avi/Makefile.am: * gst/cutter/Makefile.am: * gst/debug/Makefile.am: * gst/effectv/Makefile.am: * gst/equalizer/Makefile.am: * gst/flx/Makefile.am: * gst/goom/Makefile.am: * gst/goom2k1/Makefile.am: * gst/icydemux/Makefile.am: * gst/id3demux/Makefile.am: * gst/interleave/Makefile.am: * gst/law/Makefile.am: * gst/level/Makefile.am: * gst/matroska/Makefile.am: * gst/median/Makefile.am: * gst/monoscope/Makefile.am: * gst/multifile/Makefile.am: * gst/multipart/Makefile.am: * gst/oldcore/Makefile.am: * gst/qtdemux/Makefile.am: * gst/replaygain/Makefile.am: * gst/rtp/Makefile.am: * gst/rtsp/Makefile.am: * gst/smpte/Makefile.am: * gst/spectrum/Makefile.am: * gst/udp/Makefile.am: * gst/videobox/Makefile.am: * gst/videocrop/Makefile.am: * gst/videofilter/Makefile.am: * gst/videomixer/Makefile.am: * gst/wavenc/Makefile.am: * gst/wavparse/Makefile.am: * sys/directdraw/Makefile.am: * sys/directsound/Makefile.am: * sys/oss/Makefile.am: * sys/osxaudio/Makefile.am: * sys/osxvideo/Makefile.am: * sys/sunaudio/Makefile.am: * sys/v4l2/Makefile.am: * sys/waveform/Makefile.am: * sys/ximage/Makefile.am: Don't install static libs for plugins. Fixes #550851 for -good.
* sys/v4l2/v4l2src_calls.c: Guard more uncommon formats with ifdefs so that we ↵Wim Taymans2008-10-311-0/+8
| | | | | | | | | can compile on older versions. Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_format_get_rank): Guard more uncommon formats with ifdefs so that we can compile on older versions.
* sys/ximage/gstximagesrc.c: Fix build for systems that don't have XDamage.Edward Hervey2008-10-081-0/+4
| | | | | | Original commit message from CVS: * sys/ximage/gstximagesrc.c: (gst_ximage_src_stop): Fix build for systems that don't have XDamage.
* sys/ximage/gstximagesrc.c: Stop leaking the cursor image.Wim Taymans2008-10-031-0/+12
| | | | | | | | | Original commit message from CVS: * sys/ximage/gstximagesrc.c: (gst_ximage_src_start), (gst_ximage_src_stop), (gst_ximage_src_ximage_get): Stop leaking the cursor image. Unref the last_ximage and the cached cursor image on shutdown. Fixes #551570.
* sys/v4l2/gstv4l2object.h: Getting the Class from an instance is not just a ↵Wim Taymans2008-10-031-3/+3
| | | | | | | | | | matter of casting it to the class struct b... Original commit message from CVS: * sys/v4l2/gstv4l2object.h: Getting the Class from an instance is not just a matter of casting it to the class struct but it involves calling G_OBJECT_GET_CLASS on the instance. Fixes #549784.
* configure.ac: Fix libs for linking directsound.Michael Smith2008-10-011-9/+94
| | | | | | | | | Original commit message from CVS: * configure.ac: Fix libs for linking directsound. * sys/directsound/gstdirectsoundsink.c: Fix buffer sizing to prevent racing the ringbuffer at startup. Add volume property.
* sys/osxaudio/: Fix the build on macosx.Edward Hervey2008-08-273-14/+16
| | | | | | | | | | | Original commit message from CVS: * sys/osxaudio/gstosxaudiosink.c: (gst_osx_audio_sink_select_device): * sys/osxaudio/gstosxaudiosrc.c: (gst_osx_audio_src_create_ringbuffer), (gst_osx_audio_src_select_device): * sys/osxaudio/gstosxringbuffer.c: (gst_osx_ring_buffer_acquire): Fix the build on macosx.
* sys/osxaudio/gstosxaudio.c: Oops. Revert more completely.Michael Smith2008-08-271-2/+2
| | | | | | Original commit message from CVS: * sys/osxaudio/gstosxaudio.c: Oops. Revert more completely.
* sys/osxaudio/gstosxaudio.c: Revert accidental element rename from testing.Michael Smith2008-08-261-2/+2
| | | | | | Original commit message from CVS: * sys/osxaudio/gstosxaudio.c: Revert accidental element rename from testing.
* sys/osxaudio/: Rewrite caps setting and ring buffer initialisation.Michael Smith2008-08-268-136/+324
| | | | | | | | | | | | | | | | | Original commit message from CVS: * sys/osxaudio/Makefile.am: * sys/osxaudio/gstosxaudio.c: * 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 caps setting and ring buffer initialisation. Previously we never told CoreAudio what format we were going to send it, so it only worked due to luck, and not at all on some hardware. Now we explicitly advertise what formats the hardware supports, and then configure the selected one correctly.
* sys/v4l2/: Fix memory leaks. Small code cleanups : No need for empty ↵Stefan Kost2008-08-265-16/+29
| | | | | | | | | | | | | _init(). No need to memset instance structures. ... Original commit message from CVS: * sys/v4l2/gstv4l2object.c: * sys/v4l2/gstv4l2src.c: * sys/v4l2/gstv4l2src.h: * sys/v4l2/v4l2_calls.c: * sys/v4l2/v4l2src_calls.c: Fix memory leaks. Small code cleanups : No need for empty _init(). No need to memset instance structures. Some more FIXME's.
* sys/v4l2/gstv4l2tuner.c: v4l2src doesn't have a property named "norm" so ↵Filippo Argiolas2008-08-231-0/+2
| | | | | | | | | | | don't try to notify about changes to that pr... Original commit message from CVS: Patch by: Filippo Argiolas <filippo dot argiolas at gmail dot com> * sys/v4l2/gstv4l2tuner.c: (gst_v4l2_tuner_set_norm_and_notify): v4l2src doesn't have a property named "norm" so don't try to notify about changes to that property. The "norm" property and related code are commented out currently. Fixes bug #549090.
* sys/v4l2/gstv4l2object.c: Reprobe devices again instead of taking a cached ↵Mike Ruprecht2008-08-231-4/+4
| | | | | | | | | | list as new devices could've been plugged ... Original commit message from CVS: Patch by: Mike Ruprecht <cmaiku at gmail dot com> * sys/v4l2/gstv4l2object.c: (gst_v4l2_class_probe_devices): Reprobe devices again instead of taking a cached list as new devices could've been plugged in. Fixes bug #549062.
* sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_buffer_alloc, ↵Ole André Vadla Ravnås2008-08-211-0/+2
| | | | | | | | | gst_directdraw_sink_bufferpool_clear): Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_buffer_alloc, gst_directdraw_sink_bufferpool_clear): Fix two more buffer ref leaks.
* sys/directdraw/gstdirectdrawsink.c: Fix buffer ref leak.Ole André Vadla Ravnås2008-08-211-6/+4
| | | | | | | | Original commit message from CVS: Patch by: Ole André Vadla Ravnås <ole.andre.ravnas at tandberg com> * sys/directdraw/gstdirectdrawsink.c: (gst_directdraw_sink_show_frame): Fix buffer ref leak.