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:
Thomas Vander Stichele 2004-04-01 13:20:03 +00:00
parent ba4a681b88
commit 476f84163e
2 changed files with 10 additions and 0 deletions

View file

@ -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:

View file

@ -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;
}