summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* sys/v4l2/gstv4l2src.c: Add NV12, NV21 and bayer support. See #520092.William M. Brack2008-05-261-2/+20
| | | | | | | | Original commit message from CVS: Patch by: William M. Brack <wbrack at mmm dot com dot hk> * sys/v4l2/gstv4l2src.c: (gst_v4l2src_v4l2fourcc_to_structure), (gst_v4l2_get_caps_info): Add NV12, NV21 and bayer support. See #520092.
* sys/v4l2/gstv4l2src.c: Don't include the gstv4l2xoverlay.h header as the ↵Sebastian Dröge2008-05-171-0/+2
| | | | | | | | | | XOverlay support isn't implemented at all ye... Original commit message from CVS: * sys/v4l2/gstv4l2src.c: Don't include the gstv4l2xoverlay.h header as the XOverlay support isn't implemented at all yet and this requires X headers to be installed. Fixes bug #533264.
* sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_setup_ddraw): Do ↵Haakon Sporsheim2008-05-071-0/+3
| | | | | | | | | | IDirectDrawClipper_SetHWnd() if the window I... Original commit message from CVS: patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com> * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_setup_ddraw): Do IDirectDrawClipper_SetHWnd() if the window ID has already been set after creating the clipper.
* sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_show_frame): Added ↵Haakon Sporsheim2008-05-071-1/+5
| | | | | | | | | | | checking of surface lost case after an uns... Original commit message from CVS: patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com> * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_show_frame): Added checking of surface lost case after an unsuccessful IDirectDrawSurface7_Lock() call. If surface is lost, return GST_FLOW_OK.
* sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_show_frame,Haakon Sporsheim2008-05-071-19/+23
| | | | | | | | | | | Original commit message from CVS: patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com> * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_show_frame, WndProc, gst_directdraw_sink_window_thread): Improved Windows message loop and fixed window destruction issue. When the window which DirectDraw is rendering to is destroyed, the render/show_frame function will return GST_FLOW_ERROR. Partially fixes #520885.
* sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_set_caps): Fixed mid ↵Haakon Sporsheim2008-05-071-0/+6
| | | | | | | | | | | stream resolution change bug, the offscr... Original commit message from CVS: patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com> * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_set_caps): Fixed mid stream resolution change bug, the offscreen surface is now released when set_caps is called. Partially fixes #520885.
* sys/directdraw/gstdirectdrawsink.cOle André Vadla Ravnås2008-05-071-5/+13
| | | | | | | | | | | | | | Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_buffer_alloc): Make it so that gst_directdraw_sink_buffer_alloc uses the right width/height. Especially when looking through the pool of buffers, make sure that the width/height of caps is used instead of the already negotiated dimensions. For example if a buffer with different caps is requested, i.e. higher resolution, the caller would get a buffer with the old dimensions and thus corrupt the heap.
* sys/directdraw/gstdirectdrawsink.cOle André Vadla Ravnås2008-05-071-0/+1
| | | | | | | | | Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_buffer_alloc): Clear the flags on recycled buffers from buffer_alloc. Partially fixes #520885. The right fix this time.
* sys/directdraw/gstdirectdrawsink.cOle André Vadla Ravnås2008-05-071-13/+5
| | | | | | | | Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_buffer_alloc): Reverting previous commit, it had it all mixed up, was for a different patch (major automation screw-up). Sorry!
* sys/directdraw/gstdirectdrawsink.cOle André Vadla Ravnås2008-05-071-5/+13
| | | | | | | | Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_buffer_alloc): Clear the flags on recycled buffers from buffer_alloc. Partially fixes #520885.
* sys/osxvideo/cocoawindow.m: Fix compiler warnings on PPC64. Fixes bug #499318.Thijs Vermeir2008-05-061-3/+3
| | | | | | | Original commit message from CVS: Patch by: Thijs Vermeir <thijsvermeir at gmail dot com> * sys/osxvideo/cocoawindow.m: Fix compiler warnings on PPC64. Fixes bug #499318.
* sys/oss/: More logging when probing (see #518474), some comments in _reset().Tim-Philipp Müller2008-04-083-20/+15
| | | | | | | | Original commit message from CVS: * sys/oss/gstosshelper.c: (gst_oss_helper_rate_check_rate): * sys/oss/gstosssink.c: (gst_oss_sink_reset): * sys/oss/gstosssrc.c: (gst_oss_src_reset): More logging when probing (see #518474), some comments in _reset().
* sys/sunaudio/: Fix up copyrights (#525860).Brian Cameron2008-04-0211-11/+24
| | | | | | | | | | | | | | | | | Original commit message from CVS: Patch by: Brian Cameron <brian.cameron at sun dot com> * sys/sunaudio/gstsunaudio.c: * sys/sunaudio/gstsunaudiomixer.c: * sys/sunaudio/gstsunaudiomixer.h: * sys/sunaudio/gstsunaudiomixerctrl.c: * sys/sunaudio/gstsunaudiomixerctrl.h: * sys/sunaudio/gstsunaudiomixertrack.c: * sys/sunaudio/gstsunaudiomixertrack.h: * sys/sunaudio/gstsunaudiosink.c: * sys/sunaudio/gstsunaudiosink.h: * sys/sunaudio/gstsunaudiosrc.c: * sys/sunaudio/gstsunaudiosrc.h: Fix up copyrights (#525860).
* sys/sunaudio/: Fix up the mixer tracks to use a volume range of 0-255, which ↵Brian Cameron2008-03-272-10/+7
| | | | | | | | | | | | | | is what the sun audio API uses. This sim... Original commit message from CVS: Patch by: Brian Cameron <brian.cameron at sun dot com> * sys/sunaudio/gstsunaudiomixerctrl.c: (gst_sunaudiomixer_ctrl_get_volume), (gst_sunaudiomixer_ctrl_set_volume): * sys/sunaudio/gstsunaudiomixertrack.c: (gst_sunaudiomixer_track_new): Fix up the mixer tracks to use a volume range of 0-255, which is what the sun audio API uses. This simplifies the code and avoids rounding errors. Fixes #524593.
* Add device-fd property to make it possible to apps to call ioctl's.Edgard Lima2008-03-262-0/+14
| | | | | Original commit message from CVS: Add device-fd property to make it possible to apps to call ioctl's.
* sys/v4l2/v4l2src_calls.c: Remove superfluous DEBUG macro.Tim-Philipp Müller2008-03-251-7/+2
| | | | | | Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture): Remove superfluous DEBUG macro.
* sys/v4l2/v4l2src_calls.c: Check whether the device supports setting the ↵William M. Brack2008-03-251-27/+50
| | | | | | | | | | | | framerate before trying to set it and then po... Original commit message from CVS: Based on patch by: William M. Brack <wbrack at mmm com hk> * sys/v4l2/v4l2src_calls.c: (fractions_are_equal), (gst_v4l2src_set_capture): Check whether the device supports setting the framerate before trying to set it and then posting a warning or error if it doesn't work (#516649, #520092). Also compare fractions more correctly.
* sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy)Andy Wingo2008-03-182-1/+5
| | | | | | | | | | | | Original commit message from CVS: 2008-03-18 Andy Wingo <wingo@pobox.com> * sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy) (gst_osx_video_sink_osxwindow_new): Actually set a lock on the task, whoopdee. (cocoa_event_loop): Pacify the taymans by upping the usleepage to 2 ms.
* sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy)Andy Wingo2008-03-182-11/+19
| | | | | | | | | | | Original commit message from CVS: 2008-03-18 Andy Wingo <wingo@pobox.com> * sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy) (gst_osx_video_sink_osxwindow_new, cocoa_event_loop): * sys/osxvideo/osxvideosink.h (struct _GstOSXVideoSink): If we need to run an event loop, do so in a task instead of assuming that there will be a GMainLoop. Fixes #523134.
* sys/v4l2/v4l2src_calls.c: Make sure the probed frame sizes are reversed in ↵William M. Brack2008-03-171-4/+9
| | | | | | | | | | | | | | the resulting caps also when using V4L2_FR... Original commit message from CVS: Patch by: William M. Brack <wbrack at mmm com hk> * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format_and_size), (gst_v4l2src_probe_caps_for_format): Make sure the probed frame sizes are reversed in the resulting caps also when using V4L2_FRMSIZE_STEPWISE (so they end up highest resolution first); also remove unused variable. (Partly fixes #520092)
* sys/oss/gstosssrc.*: Cache probed caps, so _get_caps() during recording ↵Mark Nauwelaerts2008-03-112-4/+20
| | | | | | | | | | | | doesn't cause ioctl calls which may disrupt t... Original commit message from CVS: Patch by: Mark Nauwelaerts <manauw skynet be> * sys/oss/gstosssrc.c: (gst_oss_src_init), (gst_oss_src_getcaps), (gst_oss_src_close): * sys/oss/gstosssrc.h: Cache probed caps, so _get_caps() during recording doesn't cause ioctl calls which may disrupt the recording (fixes #521875).
* sys/ximage/gstximagesrc.c: Initialise variables when opening the X display ↵Jan Schmidt2008-02-121-3/+5
| | | | | | | | | | rather than in _start(), as the display ca... Original commit message from CVS: * sys/ximage/gstximagesrc.c: Initialise variables when opening the X display rather than in _start(), as the display can be opened before that. Fixes: #515985
* sys/directdraw/gstdirectdrawsink.c: Properly chain up finalize functions. ↵Sebastian Dröge2008-02-121-1/+8
| | | | | | | | | | Fixes bug #515980. Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c: (gst_ddrawsurface_class_init), (gst_ddrawsurface_finalize), (gst_directdraw_sink_finalize): Properly chain up finalize functions. Fixes bug #515980.
* sys/v4l2/v4l2src_calls.c: Chain up the finalize functions. Fixes bug #515984.Sebastian Dröge2008-02-121-0/+12
| | | | | | | | Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize), (gst_v4l2_buffer_class_init), (gst_v4l2_buffer_pool_finalize), (gst_v4l2_buffer_pool_class_init): Chain up the finalize functions. Fixes bug #515984.
* sys/ximage/ximageutil.c: Chain up in the finalize function for our custom ↵Sebastian Dröge2008-02-121-0/+8
| | | | | | | | | | | buffer sub-class. Original commit message from CVS: * sys/ximage/ximageutil.c: Chain up in the finalize function for our custom buffer sub-class. Patch by: Sebastian Dröge <slomo@circular-chaos.org> Fixes: #515706
* sys/ximage/gstximagesrc.c: Free allocated Damage memory before closing our ↵Jan Schmidt2008-02-121-0/+19
| | | | | | | | | connection to the Original commit message from CVS: * sys/ximage/gstximagesrc.c: Free allocated Damage memory before closing our connection to the X server. Fixes: #515706
* sys/v4l2/v4l2_calls.c: Treat ENOTTY (driver does not implement ioctl) the ↵Jan Schmidt2008-01-313-41/+53
| | | | | | | | | | | | | | | | | same as Original commit message from CVS: * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists): Treat ENOTTY (driver does not implement ioctl) the same as EINVAL since it implies there are no available standards. * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format), (gst_v4l2src_get_nearest_size): Replace gst_v4l2src_get_size_limits with 2 calls to new function gst_v4l2src_get_nearest_size, and get it to use VIDIOC_S_FMT to probe if the driver does not support VIDIOC_TRY_FMT for whatever reason, and if we aren't yet actively capturing. * sys/v4l2/v4l2src_calls.h: Remove replaced function declaration.
* configure.ac: Detect video4linux headers on Solaris too.Brian Cameron2008-01-214-3/+17
| | | | | | | | | | | | | | Original commit message from CVS: * configure.ac: Detect video4linux headers on Solaris too. * sys/v4l2/gstv4l2colorbalance.h: * sys/v4l2/gstv4l2object.h: * sys/v4l2/v4l2_calls.c: * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize), (gst_v4l2_buffer_new): Make v4l2 build on Solaris. Patch by: Brian Cameron <brian.cameron at sun dot com> Fixes: #510505
* Revert previous change caused by a file that got stuck on an old revision.Stefan Kost2008-01-151-34/+41
| | | | | | | | Original commit message from CVS: * docs/plugins/gst-plugins-good-plugins-sections.txt: * sys/osxvideo/osxvideosink.h: Revert previous change caused by a file that got stuck on an old revision.
* Managed to resolve most unused declarations. Filed a bug for one left.Stefan Kost2008-01-152-44/+34
| | | | | | | | | Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-good-plugins-sections.txt: * sys/osxaudio/gstosxaudiosink.h: * sys/osxvideo/osxvideosink.h: Managed to resolve most unused declarations. Filed a bug for one left.
* Generate the image-type values correctly. Leave them out of the caps when ↵Jan Schmidt2008-01-111-0/+3
| | | | | | | | | | | | | | | outputting a "preview image" tag, since it ... Original commit message from CVS: * ext/flac/gstflacdec.c: (gst_flac_extract_picture_buffer): * gst/id3demux/id3v2frames.c: (parse_picture_frame): Generate the image-type values correctly. Leave them out of the caps when outputting a "preview image" tag, since it only makes sense to have one of those - the type is irrelevant. * sys/sunaudio/gstsunaudiomixerctrl.c: (gst_sunaudiomixer_ctrl_open): If we can, mark the mixer multiple open when we use it, in case (for some reason) the process wants to open it again elsewhere.
* sys/directdraw/gstdirectdrawsink.c: FALSE is not a gpointer.Tim-Philipp Müller2008-01-071-2/+2
| | | | | | | Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c: (gst_directdraw_sink_window_thread): FALSE is not a gpointer.
* sys/directdraw/gstdirectdrawsink.c: Make sure we create our internal window ↵Julien Moutte2008-01-051-38/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | only when we need it. That will give a ch... Original commit message from CVS: 2008-01-05 Julien Moutte <julien@fluendo.com> * sys/directdraw/gstdirectdrawsink.c: (gst_directdraw_sink_set_window_id), (gst_directdraw_sink_set_caps), (gst_directdraw_sink_change_state), (gst_directdraw_sink_buffer_alloc), (gst_directdraw_sink_draw_borders), (gst_directdraw_sink_show_frame), (gst_directdraw_sink_setup_ddraw), (gst_directdraw_sink_window_thread), (gst_directdraw_sink_get_ddrawcaps), (gst_directdraw_sink_surface_create): Make sure we create our internal window only when we need it. That will give a chance to the application to get the prepare-xwindow-id bus message. Draw black borders when keeping aspect ratio. Handle the case where our rendering window disappears (closed or errors) like other sinks do. Various 80 columns fixes, improve state change order. That element could need some more love.
* Fix 'xyz may be used uninitialized' compiler warnings caused by broken ↵Tim-Philipp Müller2007-12-261-1/+1
| | | | | | | | | | | | g_assert_not_reached() macro in GLib-2.15.x (i... Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_loop): * gst/wavparse/gstwavparse.c: (gst_wavparse_chain): * sys/ximage/gstximagesrc.c: (composite_pixel): Fix 'xyz may be used uninitialized' compiler warnings caused by broken g_assert_not_reached() macro in GLib-2.15.x (it's not really nice to abort in any case). Fixes #505745.
* sys/v4l2/: Init some structs to zero before we pass them to ioctl, which ↵Tim-Philipp Müller2007-12-112-6/+8
| | | | | | | | | | avoids valgrind warnings. Also fix a small ... Original commit message from CVS: * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists): * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_fill_format_list): Init some structs to zero before we pass them to ioctl, which avoids valgrind warnings. Also fix a small memory leak.
* sys/oss/gstosshelper.c: Verify that the format returned after the ioctl is ↵Jan Schmidt2007-12-081-1/+1
| | | | | | | | | | the one we requested. It is valid for the ... Original commit message from CVS: * sys/oss/gstosshelper.c: Verify that the format returned after the ioctl is the one we requested. It is valid for the ioctl to succeed while substituting an alternate 'supported' sample format.
* sys/oss/: Post decent (and translated) error message when we can't open the ↵Tim-Philipp Müller2007-12-073-6/+40
| | | | | | | | | | | audio device for some reason. Original commit message from CVS: * sys/oss/gstossaudio.c: (plugin_init): * sys/oss/gstosssink.c: (gst_oss_sink_open): * sys/oss/gstosssrc.c: (gst_oss_src_open): Post decent (and translated) error message when we can't open the audio device for some reason.
* sys/oss/: Allow the AUDIODEV environment variable to redirect us to a ↵Jan Schmidt2007-12-072-2/+13
| | | | | | | | | | | different default OSS device, like sunaudiosink... Original commit message from CVS: * sys/oss/gstosssink.c: * sys/oss/gstosssrc.c: Allow the AUDIODEV environment variable to redirect us to a different default OSS device, like sunaudiosink does on Solaris (makes audio play automatically on SunRays).
* Fix build on Mac OS X 10.5Julien Moutte2007-11-203-3/+4
| | | | | | | | | | | | Original commit message from CVS: 2007-11-20 Julien MOUTTE <julien@moutte.net> * ext/taglib/gsttaglibmux.c: (gst_tag_lib_mux_render_tag), (gst_tag_lib_mux_adjust_event_offsets): * gst/qtdemux/qtdemux.c: (qtdemux_parse_theora_extension): * sys/osxaudio/Makefile.am: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: Fix build on Mac OS X 10.5
* Always copy buffers by default (handle safer with bugged drivers) and added ↵Edgard Lima2007-11-153-21/+30
| | | | | | | a property to make it possible to use mma... Original commit message from CVS: Always copy buffers by default (handle safer with bugged drivers) and added a property to make it possible to use mmap effectively (no copy if possible) when application wants to. Fixes: #480557.
* sys/v4l2/v4l2src_calls.c: but the corresponding ioctl() call fails even ↵Tim-Philipp Müller2007-11-131-0/+12
| | | | | | | | | | | | though the driver claims to support this form... Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format): If VIDIOC_ENUM_FRAMESIZES is defined (= recent kernel), but the corresponding ioctl() call fails even though the driver claims to support this format, just fall back to the pre-2.6.19 kernel routine that creates caps with suitable height and width ranges (see #448278).
* sys/v4l2/v4l2src_calls.c: Fix 'unused variable' compiler warning when ↵Tim-Philipp Müller2007-10-261-1/+1
| | | | | | | | | compiling against older kernel headers. Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: Fix 'unused variable' compiler warning when compiling against older kernel headers.
* sys/osxaudio/gstosxaudiosrc.c: Use default input device instead of default ↵Yun Zheng Hu2007-10-231-3/+10
| | | | | | | | | | output device and only memcpy actual avail... Original commit message from CVS: patch by: Yun Zheng Hu * sys/osxaudio/gstosxaudiosrc.c: Use default input device instead of default output device and only memcpy actual available bytes.
* sys/v4l2/v4l2src_calls.c: Fixes "v4l2src ! queue ! xvimagesink". The queue ↵Edgard Lima2007-10-221-8/+20
| | | | | | | | | | ask for buffer too early. It is temporary ... Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_grab_frame): Fixes "v4l2src ! queue ! xvimagesink". The queue ask for buffer too early. It is temporary until we find something better.
* sys/v4l2/v4l2src_calls.c: Add some more debug info. Generate an error when ↵Wim Taymans2007-10-181-5/+33
| | | | | | | | | | we run out of buffers for some reason. See... Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize), (gst_v4l2src_grab_frame): Add some more debug info. Generate an error when we run out of buffers for some reason. See #480557.
* sys/v4l2/: When probing the formats and sizes a camera supports, make sure ↵Tim-Philipp Müller2007-10-132-13/+116
| | | | | | | | | | | | | | | | | | | | | the best ones (highest resolution, prefere... Original commit message from CVS: * sys/v4l2/gstv4l2src.c: * sys/v4l2/v4l2src_calls.c: When probing the formats and sizes a camera supports, make sure the best ones (highest resolution, prefered format) end up at the beginning of the probed caps and the less desirable ones at the end. This is important because the order within the caps matters for things like fixation and negotiation, ie. what format is chosen in the end. With recent kernels, the current probing code will end up querying the supported sizes from lowest resolution to highest resolution, adding them to the probed caps in that order, resulting to v4l2src fixating to the lowest possible resolution if downstream does not express a size preference. Also make up a somewhat random ranking of prefered output formats for the same reason. Fixes #485828.
* sys/oss/gstosshelper.c: Use GST_WARNING instead of a g_critical. This ↵Stefan Kost2007-09-231-2/+3
| | | | | | | | | situation is not caused by the application. Original commit message from CVS: * sys/oss/gstosshelper.c: Use GST_WARNING instead of a g_critical. This situation is not caused by the application.
* fix header and commentsThomas Vander Stichele2007-09-222-33/+29
| | | | | Original commit message from CVS: fix header and comments
* ext/gconf/gstgconfaudiosink.c: Fix warning when building without debug.Stefan Kost2007-09-121-52/+28
| | | | | | | | Original commit message from CVS: * ext/gconf/gstgconfaudiosink.c: Fix warning when building without debug. * sys/oss/gstossmixertrack.c: Use const like in alsamixertrack.c (fixes warnings).
* sys/v4l2/v4l2src_calls.c: Fix framerate detection code some more.Wim Taymans2007-09-111-40/+62
| | | | | | | | | | | | Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format_and_size): Fix framerate detection code some more. Handle the case where there is a weird step in the stepwise framerates. Don't overwrite the min interval with the framerate, use a temp variable instead. Use max in the Continuous framerate intervals instead of step, which is 1 according to the docs. Fixes #475424.