mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
Add proper switch to needs_probe()
Original commit message from CVS: Add proper switch to needs_probe()
This commit is contained in:
parent
133cbb7770
commit
58ddceed73
1 changed files with 11 additions and 1 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue