From bb72770c036d8a96e5ecb744461ce9ceaf3870c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 9 Jun 2010 20:45:04 +0200 Subject: [PATCH] switchsink: Set the GST_ELEMENT_IS_SINK flag on the sink --- ext/gconf/gstswitchsink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/gconf/gstswitchsink.c b/ext/gconf/gstswitchsink.c index 71152c7c11..455f3490ac 100644 --- a/ext/gconf/gstswitchsink.c +++ b/ext/gconf/gstswitchsink.c @@ -89,6 +89,8 @@ gst_switch_sink_init (GstSwitchSink * sink, GstSwitchSinkClass * g_class) gst_element_add_pad (GST_ELEMENT (sink), sink->pad); gst_switch_sink_reset (sink); + + GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK); } static void @@ -194,6 +196,8 @@ gst_switch_commit_new_kid (GstSwitchSink * sink) gst_element_set_state (old_kid, GST_STATE_NULL); gst_bin_remove (GST_BIN (sink), old_kid); gst_object_unref (old_kid); + /* Don't lose the SINK flag */ + GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK); } /* re-attach ghostpad */