diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-10-11 14:25:41 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-10-11 14:26:59 +0200 |
commit | d7d28ea4db284b309564cdba49e48e90912f754d (patch) | |
tree | d285ebb4dd8a2b1e7a23ff0d4234a15bfb91793e /ext | |
parent | 2833cc4375d837a9a39960c3c01634008843fb42 (diff) |
switchsrc: Set the GST_ELEMENT_IS_SOURCE flag
Diffstat (limited to 'ext')
-rw-r--r-- | ext/gsettings/gstswitchsrc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/gsettings/gstswitchsrc.c b/ext/gsettings/gstswitchsrc.c index 61ab31f80..0136e4a86 100644 --- a/ext/gsettings/gstswitchsrc.c +++ b/ext/gsettings/gstswitchsrc.c @@ -89,6 +89,8 @@ gst_switch_src_init (GstSwitchSrc * src, GstSwitchSrcClass * g_class) gst_element_add_pad (GST_ELEMENT (src), src->pad); gst_switch_src_reset (src); + + GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE); } static void @@ -191,6 +193,8 @@ gst_switch_src_commit_new_kid (GstSwitchSrc * src) gst_element_set_state (old_kid, GST_STATE_NULL); gst_bin_remove (GST_BIN (src), old_kid); gst_object_unref (old_kid); + /* Don't lose the SOURCE flag */ + GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE); } /* re-attach ghostpad */ |