From 58ddceed73344e25f3c61129031e4ebc490e44bc Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 6 Nov 2003 10:15:22 +0000 Subject: [PATCH] Add proper switch to needs_probe() Original commit message from CVS: Add proper switch to needs_probe() --- sys/oss/gstosselement.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c index 07f0766c5b..b9211199bd 100644 --- a/sys/oss/gstosselement.c +++ b/sys/oss/gstosselement.c @@ -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 *