summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* sys/v4l2/v4l2src_calls.c: Don't overwrite our GValue with 0 but instead use ↵Wim Taymans2007-09-071-3/+0
| | | | | | | | | | the previously computed value. Fixes #471... Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format_and_size): Don't overwrite our GValue with 0 but instead use the previously computed value. Fixes #471823 some more.
* sys/v4l2/: Implement LATENCY queries in the crudest way possible so I don't ↵Tim-Philipp Müller2007-09-053-5/+78
| | | | | | | | | | | have to use sync=false any longer when te... Original commit message from CVS: * sys/v4l2/gstv4l2src.c: * sys/v4l2/gstv4l2src.h: * sys/v4l2/v4l2src_calls.c: Implement LATENCY queries in the crudest way possible so I don't have to use sync=false any longer when testing with videosinks.
* sys/v4l2/v4l2src_calls.c: Add some more debugging in the framerate function.Wim Taymans2007-09-051-8/+31
| | | | | | | | | | Original commit message from CVS: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format_and_size): Add some more debugging in the framerate function. Iterate stepwise framerate up to and _including_ the max and if nothing was added to the list, add a dummy 0/1 to 100/1 framerate so that we don't end up with an empty list.
* sys/v4l2/gstv4l2src.c: Restructure the setcaps function so that we can also ↵Wim Taymans2007-09-043-131/+260
| | | | | | | | | | | | | | | | | | | | | | | compute the expected GStreamer output siz... Original commit message from CVS: * sys/v4l2/gstv4l2src.c: (gst_v4l2_get_caps_info), (gst_v4l2src_set_caps), (gst_v4l2src_get_mmap): Restructure the setcaps function so that we can also compute the expected GStreamer output size of the video frames. Set frame_byte_size correctly so that read-based devices have a chance of working correctly. When grabbing a frame, discard frames that are not of the expected size. Some cameras don't output the right framesize for the first buffer. Try only a couple of times to get a valid frame, else error out. * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities), (gst_v4l2_fill_lists), (gst_v4l2_get_input): Add some more debug info when scanning the device. * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_new), (gst_v4l2_buffer_pool_new), (gst_v4l2_buffer_pool_activate), (gst_v4l2src_fill_format_list), (gst_v4l2src_grab_frame), (gst_v4l2src_set_capture), (gst_v4l2src_capture_init): Add some more debug info when dequeing a frame.
* sys/v4l2/v4l2src_calls.c: Handle optional v4l2 ioctls gracefully.Mark Nauwelaerts2007-08-221-25/+18
| | | | | | | Original commit message from CVS: patch by: Mark Nauwelaerts <manauw@skynet.be> * sys/v4l2/v4l2src_calls.c: Handle optional v4l2 ioctls gracefully.
* sys/v4l2/gstv4l2src.c: Add another example pipeline.Stefan Kost2007-07-181-1/+8
| | | | | | Original commit message from CVS: * sys/v4l2/gstv4l2src.c: Add another example pipeline.
* sys/v4l2/gstv4l2src.c: Use define here.Alexander Eichner2007-07-184-16/+24
| | | | | | | | | | | | | | Original commit message from CVS: Patch by: Alexander Eichner <alexeichi@yahoo.de> * sys/v4l2/gstv4l2src.c: (gst_v4l2src_init): Use define here. * sys/v4l2/gstv4l2tuner.c: (gst_v4l2_tuner_set_frequency_and_notify): Don't touch the property - its still disabled. * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format), (gst_v4l2src_grab_frame), (gst_v4l2src_get_size_limits): * sys/v4l2/v4l2src_calls.h: Improve fallback format negotionation. Fixes #451388
* sys/v4l2/gstv4l2src.c: Initialize num_buffers with minimum value.Stefan Kost2007-07-172-11/+23
| | | | | | | | | Original commit message from CVS: * sys/v4l2/gstv4l2src.c: (gst_v4l2src_init): Initialize num_buffers with minimum value. * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_fill_format_list), (gst_v4l2src_probe_caps_for_format), (gst_v4l2src_grab_frame): Handle frame-size query failure gracefully.
* Make sure to dist everything needed for win32 builds.Jan Schmidt2007-06-144-1/+21
| | | | | | | | | | Original commit message from CVS: * configure.ac: * sys/Makefile.am: * sys/directdraw/Makefile.am: * sys/directsound/Makefile.am: * sys/waveform/Makefile.am: Make sure to dist everything needed for win32 builds.
* Move videocrop and osxvideo from -bad.Jan Schmidt2007-06-121-7/+7
| | | | | | | | | | | | | | | Original commit message from CVS: * configure.ac: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-good-plugins-docs.sgml: * docs/plugins/gst-plugins-good-plugins-sections.txt: * docs/plugins/inspect/plugin-videocrop.xml: * gst-plugins-good.spec.in: * sys/Makefile.am: * tests/check/Makefile.am: * tests/icles/Makefile.am: * tests/icles/videocrop-test.c: Move videocrop and osxvideo from -bad.
* Return a copy of the pool buffer if all mmap buffers have been dequeued.Andy Wingo2007-06-121-6/+18
| | | | | | Original commit message from CVS: (gst_v4l2src_grab_frame): Return a copy of the pool buffer if all mmap buffers have been dequeued.
* sys/v4l2/v4l2src_calls.c (gst_v4l2_buffer_finalize) ↵Andy Wingo2007-06-124-308/+401
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gst_v4l2_buffer_class_init, gst_v4l2_buffer_get_type) Original commit message from CVS: 2007-06-12 Andy Wingo <wingo@pobox.com> * sys/v4l2/v4l2src_calls.c (gst_v4l2_buffer_finalize) (gst_v4l2_buffer_class_init, gst_v4l2_buffer_get_type) (gst_v4l2_buffer_new): Behave more like ximagesink's buffers, with finalization and resuscitation. No longer public. (gst_v4l2_buffer_pool_finalize, gst_v4l2_buffer_pool_init) (gst_v4l2_buffer_pool_class_init, gst_v4l2_buffer_pool_get_type) (gst_v4l2_buffer_pool_new, gst_v4l2_buffer_pool_activate) (gst_v4l2_buffer_pool_destroy): Make the pool follow common miniobject semantics, and be threadsafe. (gst_v4l2src_queue_frame): Remove this function, as we just call the ioctls directly in the two places where we queue buffers. (gst_v4l2src_grab_frame): Return a flowreturn and fill the buffer directly. (gst_v4l2src_capture_init): Use the new buffer_pool_new function to allocate the pool, which also preallocates the GstBuffers. (gst_v4l2src_capture_start): Call buffer_pool_activate instead of queueing the frames directly. * sys/v4l2/gstv4l2src.h (struct _GstV4l2BufferPool): Make this a real MiniObject instead of rolling our own refcounting and finalizing. Give it a lock. (struct _GstV4l2Buffer): Remove one intermediary object, having the buffers hold the struct v4l2_buffer directly. * sys/v4l2/gstv4l2src.c (gst_v4l2src_set_caps): Pass the caps to capture_init so that it can set them on the buffers that it will create. (gst_v4l2src_get_read): For better or for worse, include the timestamping and offsetting code here; really we should be using bufferalloc though. (gst_v4l2src_get_mmap): Just make grab_frame return one of our preallocated, mmap'd buffers.
* sys/ximage/gstximagesrc.c: Actually use the display_name property so that we ↵daniel fischer2007-06-111-2/+2
| | | | | | | | | | | can dump any available X display. Fixes ... Original commit message from CVS: Patch by: daniel fischer <dan at f3c dot com> * sys/ximage/gstximagesrc.c: (gst_ximage_src_start), (gst_ximage_src_get_caps): Actually use the display_name property so that we can dump any available X display. Fixes #445905.
* Add DirectDraw & DirectSound plugins to the build and docs.Jan Schmidt2007-06-081-2/+14
| | | | | | | | | | | | Original commit message from CVS: * configure.ac: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-good-plugins-docs.sgml: * docs/plugins/gst-plugins-good-plugins-sections.txt: * docs/plugins/gst-plugins-good-plugins.args: * sys/Makefile.am: * win32/MANIFEST: Add DirectDraw & DirectSound plugins to the build and docs.
* Rename the keep-aspect-ratio property to force-aspect-ratio to make it ↵Jan Schmidt2007-06-081-2/+3
| | | | | | | | | | | consistent with xvimagesink and ximagesink. Original commit message from CVS: * docs/plugins/gst-plugins-bad-plugins.args: * sys/directdraw/gstdirectdrawsink.c: (gst_directdraw_sink_class_init): Rename the keep-aspect-ratio property to force-aspect-ratio to make it consistent with xvimagesink and ximagesink.
* sys/v4l2/v4l2src_calls.c (gst_v4l2src_probe_caps_for_format)Andy Wingo2007-06-061-0/+20
| | | | | | | | | | Original commit message from CVS: 2007-06-06 Andy Wingo <wingo@pobox.com> * sys/v4l2/v4l2src_calls.c (gst_v4l2src_probe_caps_for_format) (gst_v4l2src_probe_caps_for_format_and_size): Only probe for format and size if the ioctls are defined; should fix compilation on Linux < 2.16.19.
* sys/v4l2/gstv4l2src.c (gst_v4l2src_start, gst_v4l2src_stop): Add some ↵Andy Wingo2007-06-052-47/+21
| | | | | | | | | | | | | | | | | | | | useless comments. Original commit message from CVS: 2007-06-05 Andy Wingo <wingo@pobox.com> * sys/v4l2/gstv4l2src.c (gst_v4l2src_start, gst_v4l2src_stop): Add some useless comments. * sys/v4l2/v4l2src_calls.c (gst_v4l2src_capture_init): Don't queue frames before calling STREAMON, that might leave them in a state where they can't be dequeued if we go back to NULL without calling STREAMON, according to the docs. (gst_v4l2src_capture_start): Enqueue buffers here instead, right before we call STREAMON. (gst_v4l2src_capture_deinit): Remove crack to work around dequeue failures. (For me this code hung.) The pool refcounting is still crack; added a note to that effect.
* sys/v4l2/gstv4l2object.*: Revert some unintended changes.Andy Wingo2007-05-302-2/+7
| | | | | | | | | Original commit message from CVS: 2007-05-30 Andy Wingo <wingo@pobox.com> * sys/v4l2/gstv4l2object.h: * sys/v4l2/gstv4l2object.c (gst_v4l2_object_new): Revert some unintended changes.
* sys/v4l2/v4l2src_calls.*: Store the format list in the order that the driver ↵Andy Wingo2007-05-307-456/+459
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gives it to us. Original commit message from CVS: 2007-05-30 Andy Wingo <wingo@pobox.com> * sys/v4l2/v4l2src_calls.h: * sys/v4l2/v4l2src_calls.c (gst_v4l2src_fill_format_list): Store the format list in the order that the driver gives it to us. (gst_v4l2src_probe_caps_for_format_and_size) (gst_v4l2src_probe_caps_for_format): New functions, fill GstCaps based on the capabilities of the device. (gst_v4l2src_grab_frame): Update for object variable renaming. (gst_v4l2src_set_capture): Update to be strict in its parameters, as in the set_caps below. (gst_v4l2src_capture_init): Update for object variable renaming, and reflow. (gst_v4l2src_capture_start, gst_v4l2src_capture_stop) (gst_v4l2src_capture_deinit): Update for object variable renaming. (gst_v4l2src_update_fps, gst_v4l2src_set_fps) (gst_v4l2src_get_fps): Remove; these functions don't have much meaning outside of an atomic set_caps method. (gst_v4l2src_buffer_new): Don't set buffer duration, it is not known. * sys/v4l2/gstv4l2tuner.c (gst_v4l2_tuner_set_channel): Remove call to update_fps; not sure about this change. (gst_v4l2_tuner_set_norm): Work around the fact that for the moment we don't have an update_fps_func. * sys/v4l2/gstv4l2src.h (struct _GstV4l2Src): Don't put v4l2 structures in the object, just store what we need. Do store the probed caps of the device. Don't store the current frame rate. * sys/v4l2/gstv4l2src.c (gst_v4l2src_init): Remove the update_fps_function, for now. Update for new object variable naming. (gst_v4l2src_set_property, gst_v4l2src_get_property): Update for new object variable naming. (gst_v4l2src_v4l2fourcc_to_structure): Rename from ..._to_caps. (gst_v4l2_structure_to_v4l2fourcc): Rename from ...caps_to_.... (gst_v4l2src_get_caps): Rework to probe the device for supported frame sizes and frame rates. (gst_v4l2src_set_caps): Rework to be strict in the given parameters: if someone asks us to have a certain size and rate, that is what we configure. (gst_v4l2src_get_read): Update for object variable naming. Don't leak buffers on short reads. (gst_v4l2src_get_mmap): Update for object variable naming, and add comments. (gst_v4l2src_create): Update for object variable naming.
* sys/directdraw/gstdirectdrawsink.*: Fix more warnings when compiling with ↵Vincent Torri2007-05-242-15/+34
| | | | | | | | | | | | | | | | MingW (#439914). Original commit message from CVS: Patch by: Vincent Torri <vtorri at univ-evry fr> * sys/directdraw/gstdirectdrawsink.c: (gst_directdraw_sink_buffer_alloc), (gst_directdraw_sink_show_frame), (gst_directdraw_sink_check_primary_surface), (gst_directdraw_sink_check_offscreen_surface), (EnumModesCallback2), (gst_directdraw_sink_get_ddrawcaps), (gst_directdraw_sink_surface_create): * sys/directdraw/gstdirectdrawsink.h: Fix more warnings when compiling with MingW (#439914).
* docs/plugins/gst-plugins-bad-plugins.args: Remove directsoundsink property ↵Sébastien Moutte2007-05-232-78/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | doc as this sink use the mixer interface now. Original commit message from CVS: * docs/plugins/gst-plugins-bad-plugins.args: Remove directsoundsink property doc as this sink use the mixer interface now. * docs/plugins/gst-plugins-bad-plugins.interfaces: Add interfaces implemented by Windows sinks. * sys/directsound/gstdirectsoundsink.c: * sys/directsound/gstdirectsoundsink.h: Remove directsoundsink property and implement the mixer interface. * win32/vs6/gst_plugins_bad.dsw: * win32/vs6/libgstdirectsound.dsp: Update project files. * gst-libs/gst/dshow/gstdshow.cpp: * gst-libs/gst/dshow/gstdshow.h: * gst-libs/gst/dshow/gstdshowfakesink.cpp: * gst-libs/gst/dshow/gstdshowfakesink.h: * gst-libs/gst/dshow/gstdshowfakesrc.cpp: * gst-libs/gst/dshow/gstdshowfakesrc.h: * gst-libs/gst/dshow/gstdshowinterface.cpp: * gst-libs/gst/dshow/gstdshowinterface.h: * win32/common/libgstdshow.def: * win32/vs6/libgstdshow.dsp: Add a new gst library which allow to create internal Direct Show graph (pipelines) to wrap Windows sources, decoders or encoders. It includes a DirectShow fake source and sink and utility functions. * sys/dshowsrcwrapper/gstdshowaudiosrc.c: * sys/dshowsrcwrapper/gstdshowaudiosrc.h: * sys/dshowsrcwrapper/gstdshowsrcwrapper.c: * sys/dshowsrcwrapper/gstdshowsrcwrapper.h: * sys/dshowsrcwrapper/gstdshowvideosrc.c: * sys/dshowsrcwrapper/gstdshowvideosrc.h: * win32/vs6/libdshowsrcwrapper.dsp: Add a new plugin to wrap DirectShow sources on Windows. It gets data from any webcam, dv cam, micro. We could add tv tunner card later.
* docs/plugins/Makefile.am: Also look for .m (objectivec) files.Edward Hervey2007-05-221-0/+37
| | | | | | | | | | Original commit message from CVS: * docs/plugins/Makefile.am: Also look for .m (objectivec) files. * docs/plugins/gst-plugins-bad-plugins-sections.txt: * docs/plugins/gst-plugins-bad-plugins.args: * sys/osxvideo/osxvideosink.m: Add documentation for element and properties.
* sys/directdraw/gstdirectdrawsink.c: Bunch of small fixes: remove static ↵Tim-Philipp Müller2007-05-201-59/+58
| | | | | | | | | | | | | | function that doesn't exist; declare another ... Original commit message from CVS: * sys/directdraw/gstdirectdrawsink.c: (gst_ddrawsurface_finalize), (gst_directdraw_sink_buffer_alloc), (gst_directdraw_sink_get_ddrawcaps), (gst_directdraw_sink_surface_create): Bunch of small fixes: remove static function that doesn't exist; declare another one that does; printf format fix; use right macro when specifying debug category; remove a bunch of unused variables; #if 0 out an unused chunk of code (partially fixes #439914).
* sys/osxvideo/osxvideosink.*: Remove the event-loop-in-separate-thread ↵Edward Hervey2007-05-172-8/+1
| | | | | | | | | | | modifications, because MacOSX is $#@(*%$# ! For... Original commit message from CVS: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Remove the event-loop-in-separate-thread modifications, because MacOSX is $#@(*%$# ! For those wondering, the event handling needs to be done in the main thread after all..
* sys/osxvideo/osxvideosink.*: Fix a stupid #if vs #ifdef bug. Should use the ↵Edward Hervey2007-05-172-3/+19
| | | | | | | | | | | proper colorspace now. Original commit message from CVS: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Fix a stupid #if vs #ifdef bug. Should use the proper colorspace now. Use a separate thread/task for the cocoa event_loop, else it wouldn't stop.
* Add DIRECTDRAW_CFLAGS and DIRECTSOUND_CFLAGS to Makefile.am; save and ↵Tim-Philipp Müller2007-05-152-4/+4
| | | | | | | | | | | | | restore the various flags in the directdraw/dir... Original commit message from CVS: * configure.ac: * sys/directdraw/Makefile.am: * sys/directsound/Makefile.am: Add DIRECTDRAW_CFLAGS and DIRECTSOUND_CFLAGS to Makefile.am; save and restore the various flags in the directdraw/directsound detection section. Apparently improves cross-compiling for win32 with mingw32 under some circumstances (#437539).