mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
playsink: only add text overlay if vido sink also accepts raw caps
Fixes regression, pipeline fails with not negotiated, on media containing subtitles when decoder/sink with custom caps is used.
This commit is contained in:
parent
46e26824d4
commit
a22faad18a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue