playsink: only add text overlay if vido sink also accepts raw caps
authorJosep Torra <n770galaxy@gmail.com>
Wed, 7 Sep 2011 14:04:43 +0000 (16:04 +0200)
committerJosep Torra <n770galaxy@gmail.com>
Wed, 7 Sep 2011 14:08:38 +0000 (16:08 +0200)
Fixes regression, pipeline fails with not negotiated, on media
containing subtitles when decoder/sink with custom caps is used.

gst/playback/gstplaysink.c

index 32d0ae7..78ef84f 100644 (file)
@@ -2114,7 +2114,8 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
   GST_OBJECT_UNLOCK (playsink);
 
   /* figure out which components we need */
-  if (flags & GST_PLAY_FLAG_TEXT && playsink->text_pad) {
+  if (flags & GST_PLAY_FLAG_TEXT && playsink->video_pad_raw
+      && playsink->text_pad) {
     /* we have subtitles and we are requested to show it */
     need_text = TRUE;
   }