From: Wim Taymans Date: Tue, 17 Nov 2009 15:37:57 +0000 (+0100) Subject: playsink: make sure we remain a sink X-Git-Tag: 1.19.3~511^2~8970 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65773b58dd62022ef632403ce515a80538aab254;p=platform%2Fupstream%2Fgstreamer.git playsink: make sure we remain a sink When we remove our elements, we could lose our sink flag. Make sure we remain a sink by setting the flag again after removing elements. --- diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index a6afa2e..c72b9fe 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -720,8 +720,11 @@ add_chain (GstPlayChain * chain, gboolean add) if (add) gst_bin_add (GST_BIN_CAST (chain->playsink), chain->bin); - else + else { gst_bin_remove (GST_BIN_CAST (chain->playsink), chain->bin); + /* we don't want to lose our sink status */ + GST_OBJECT_FLAG_SET (chain->playsink, GST_ELEMENT_IS_SINK); + } chain->added = add;