From: Sebastian Dröge Date: Wed, 9 Jun 2010 18:22:30 +0000 (+0200) Subject: auto{audio,video}sink: Don't lose the GST_ELEMENT_IS_SINK flag after removing the... X-Git-Tag: 1.19.3~509^2~8456 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7d435911f0db96fd50cf5f4178ad73de01eea73;p=platform%2Fupstream%2Fgstreamer.git auto{audio,video}sink: Don't lose the GST_ELEMENT_IS_SINK flag after removing the child --- diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index b07ae03895..fc731c4bba 100644 --- a/gst/autodetect/gstautoaudiosink.c +++ b/gst/autodetect/gstautoaudiosink.c @@ -133,6 +133,8 @@ gst_auto_audio_sink_clear_kid (GstAutoAudioSink * sink) gst_element_set_state (sink->kid, GST_STATE_NULL); gst_bin_remove (GST_BIN (sink), sink->kid); sink->kid = NULL; + /* Don't lose the SINK flag */ + GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK); } } diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c index ed34b2f1cf..299efa516d 100644 --- a/gst/autodetect/gstautovideosink.c +++ b/gst/autodetect/gstautovideosink.c @@ -130,6 +130,8 @@ gst_auto_video_sink_clear_kid (GstAutoVideoSink * sink) gst_element_set_state (sink->kid, GST_STATE_NULL); gst_bin_remove (GST_BIN (sink), sink->kid); sink->kid = NULL; + /* Don't lose the SINK flag */ + GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK); } }