mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
playsink: fix video when subtitles disabled
When we have a source with subtitles but they were disabled with the flags, still ghostpad the video pad instead of leaving it unlinked.
This commit is contained in:
parent
01ca87e785
commit
26071d748f
1 changed files with 3 additions and 1 deletions
|
@ -1749,6 +1749,8 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
GST_DEBUG_OBJECT (playsink, "audio:%d, video:%d, vis:%d, text:%d", need_audio,
|
||||||
|
need_video, need_vis, need_text);
|
||||||
|
|
||||||
/* set up video pipeline */
|
/* set up video pipeline */
|
||||||
if (need_video) {
|
if (need_video) {
|
||||||
|
@ -1784,7 +1786,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
||||||
add_chain (GST_PLAY_CHAIN (playsink->videochain), TRUE);
|
add_chain (GST_PLAY_CHAIN (playsink->videochain), TRUE);
|
||||||
activate_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 we are not part of vis or subtitles, set the ghostpad target */
|
||||||
if (!need_vis && !need_text && playsink->text_pad == NULL) {
|
if (!need_vis && !need_text) {
|
||||||
GST_DEBUG_OBJECT (playsink, "ghosting video sinkpad");
|
GST_DEBUG_OBJECT (playsink, "ghosting video sinkpad");
|
||||||
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->video_pad),
|
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->video_pad),
|
||||||
playsink->videochain->sinkpad);
|
playsink->videochain->sinkpad);
|
||||||
|
|
Loading…
Reference in a new issue