From: Thomas V. S. <tho...@pd...> - 2004-04-01 13:20:22
|
CVS Root: /home/cvs/gstreamer Module: gst-plugins Changes by: thomasvs Date: Thu Apr 01 2004 05:20:15 PST Log message: throw an error if we couldn't probe caps Modified files: . : ChangeLog sys/oss : gstosselement.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ChangeLog.diff?r1=1.495&r2=1.496 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/sys/oss/gstosselement.c.diff?r1=1.32&r2=1.33 ====Begin Diffs==== Index: gstosselement.c =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/sys/oss/gstosselement.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- a/gstosselement.c 30 Mar 2004 18:01:45 -0000 1.32 +++ b/gstosselement.c 1 Apr 2004 13:20:03 -0000 1.33 @@ -1087,6 +1087,11 @@ } } + if (gst_caps_is_empty (caps)) { + GST_ELEMENT_ERROR (oss, RESOURCE, SETTINGS, + (_("Your oss device could not be probed correctly")), (NULL)); + return; + } GST_DEBUG ("probed caps: %" GST_PTR_FORMAT, caps); oss->probed_caps = caps; } Index: ChangeLog RCS file: /home/cvs/gstreamer/gst-plugins/ChangeLog,v retrieving revision 1.495 retrieving revision 1.496 diff -u -d -r1.495 -r1.496 --- a/ChangeLog 1 Apr 2004 12:54:44 -0000 1.495 +++ b/ChangeLog 1 Apr 2004 13:20:03 -0000 1.496 @@ -1,3 +1,8 @@ +2004-04-01 Thomas Vander Stichele <thomas at apestaart dot org> + + * sys/oss/gstosselement.c: (gst_osselement_probe_caps): + throw an error if we couldn't probe any caps. 2004-04-01 Jan Schmidt <th...@ma...> * ext/dvdnav/gst-dvd: |