mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
input-selector: return FALSE for "active" property if selector is NULL
https://bugzilla.gnome.org/show_bug.cgi?id=701323
This commit is contained in:
parent
0a32b1e2d6
commit
76f0e18f92
1 changed files with 7 additions and 3 deletions
|
@ -307,9 +307,13 @@ gst_selector_pad_get_property (GObject * object, guint prop_id,
|
||||||
GstInputSelector *sel;
|
GstInputSelector *sel;
|
||||||
|
|
||||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (spad));
|
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (spad));
|
||||||
g_value_set_boolean (value, gst_input_selector_is_active_sinkpad (sel,
|
if (sel) {
|
||||||
GST_PAD_CAST (spad)));
|
g_value_set_boolean (value, gst_input_selector_is_active_sinkpad (sel,
|
||||||
gst_object_unref (sel);
|
GST_PAD_CAST (spad)));
|
||||||
|
gst_object_unref (sel);
|
||||||
|
} else {
|
||||||
|
g_value_set_boolean (value, FALSE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PROP_PAD_ALWAYS_OK:
|
case PROP_PAD_ALWAYS_OK:
|
||||||
|
|
Loading…
Reference in a new issue