playsink: Correctly reconfigure the video chain when switching from a subtitle to...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 23 Apr 2010 14:24:11 +0000 (16:24 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 29 Apr 2010 16:21:21 +0000 (18:21 +0200)
Fixes bug #616422.

gst/playback/gstplaysink.c

index ebbecfc..ebd6f88 100644 (file)
@@ -1915,7 +1915,8 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
       add_chain (GST_PLAY_CHAIN (playsink->videochain), TRUE);
       activate_chain (GST_PLAY_CHAIN (playsink->videochain), TRUE);
       /* if we are not part of vis or subtitles, set the ghostpad target */
-      if (!need_vis && !need_text && !playsink->textchain) {
+      if (!need_vis && !need_text && (!playsink->textchain
+              || !playsink->text_pad)) {
         GST_DEBUG_OBJECT (playsink, "ghosting video sinkpad");
         gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->video_pad),
             playsink->videochain->sinkpad);