mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
throw an error if we couldn't probe caps
Original commit message from CVS: throw an error if we couldn't probe caps
This commit is contained in:
parent
ba4a681b88
commit
476f84163e
2 changed files with 10 additions and 0 deletions
|
@ -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 <thaytan@mad.scientist.com>
|
||||
|
||||
* ext/dvdnav/gst-dvd:
|
||||
|
|
|
@ -1087,6 +1087,11 @@ gst_osselement_probe_caps (GstOssElement * oss)
|
|||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue