mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11: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;
|
||||
|
||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (spad));
|
||||
g_value_set_boolean (value, gst_input_selector_is_active_sinkpad (sel,
|
||||
GST_PAD_CAST (spad)));
|
||||
gst_object_unref (sel);
|
||||
if (sel) {
|
||||
g_value_set_boolean (value, gst_input_selector_is_active_sinkpad (sel,
|
||||
GST_PAD_CAST (spad)));
|
||||
gst_object_unref (sel);
|
||||
} else {
|
||||
g_value_set_boolean (value, FALSE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case PROP_PAD_ALWAYS_OK:
|
||||
|
|
Loading…
Reference in a new issue