playsink: Correctly reconfigure the video chain when switching from a subtitle to a non-subtitle file

Fixes bug #616422.
This commit is contained in:
Sebastian Dröge 2010-04-23 16:24:11 +02:00
parent cc8a5bdcd3
commit 6c9ead7030

View 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);