summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sys/oss/gstosselement.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d6a728a0..94daf194 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c
index 03539825..0ca2e8e9 100644
--- a/sys/oss/gstosselement.c
+++ b/sys/oss/gstosselement.c
@@ -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;
}