summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrendan Long <self@brendanlong.com>2013-05-30 22:57:49 -0600
committerSebastian Dröge <slomo@circular-chaos.org>2013-06-04 17:46:25 +0200
commit76f0e18f92cfd3444303ec0b025653f3d997b7e0 (patch)
tree5858f8af7401ca902be604a15707de48e94911ed /plugins
parent0a32b1e2d6034ebba02a53d382f660b99ecd8ff8 (diff)
input-selector: return FALSE for "active" property if selector is NULL
https://bugzilla.gnome.org/show_bug.cgi?id=701323
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstinputselector.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index 0d6d0ffef..b8bc3b44c 100644
--- a/plugins/elements/gstinputselector.c
+++ b/plugins/elements/gstinputselector.c
@@ -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: