Add proper switch to needs_probe()

Original commit message from CVS:
Add proper switch to needs_probe()
This commit is contained in:
Ronald S. Bultje 2003-11-06 10:15:22 +00:00
parent 133cbb7770
commit 58ddceed73

View file

@ -318,8 +318,18 @@ gst_ossprobe_needs_probe (GstPropertyProbe *probe,
const GParamSpec *pspec)
{
GstOssElementClass *klass = GST_OSSELEMENT_GET_CLASS (probe);
gboolean ret = FALSE;
return !gst_osselement_class_probe_devices (klass, TRUE);
switch (prop_id) {
case ARG_DEVICE:
ret = !gst_osselement_class_probe_devices (klass, TRUE);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (probe, prop_id, pspec);
break;
}
return ret;
}
static GValueArray *