summaryrefslogtreecommitdiff
path: root/sys/oss
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-04-01 13:20:03 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-04-01 13:20:03 +0000
commit476f84163ebdde996649d023ad27439b5e7f4420 (patch)
tree40169d36aced7506c67656dbb779c6cb39221398 /sys/oss
parentba4a681b8863451b78194d4ab22f260be25ad4fa (diff)
throw an error if we couldn't probe caps
Original commit message from CVS: throw an error if we couldn't probe caps
Diffstat (limited to 'sys/oss')
-rw-r--r--sys/oss/gstosselement.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c
index 035398256..0ca2e8e96 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;
}