playsink: Don't fail if subtitles are used but only audio is available and no visuali...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 May 2010 15:17:33 +0000 (17:17 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 May 2010 15:17:33 +0000 (17:17 +0200)
Instead simply disable displaying of the subtitles for now, as was
intended by that part of code...

Fixes bug #610866.

gst/playback/gstplaysink.c

index abf02105d9a692bc578ff1ea5b30421d016e181c..7edaae22bf54fcd0e44c1cca099609814e3c1914 100644 (file)
@@ -1993,7 +1993,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
   if (need_text && !need_video) {
     if (playsink->video_pad) {
       need_video = TRUE;
-    } else if (!need_audio) {
+    } else if (need_audio) {
       GST_ELEMENT_WARNING (playsink, STREAM, FORMAT,
           (_("Can't play a text file without video or visualizations.")),
           ("Have text pad but no video pad or visualizations"));