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:
Brendan Long 2013-05-30 22:57:49 -06:00 committed by Sebastian Dröge
parent 0a32b1e2d6
commit 76f0e18f92

View file

@ -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: