playsink: Fix subtitle rendering if there's no video, no visualizations but a text-sink
This commit is contained in:
parent
fe0e2d65e1
commit
4872c7bf75
@ -2583,7 +2583,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
|||||||
|
|
||||||
/* we have a text_pad and we need text rendering, in this case we need a
|
/* we have a text_pad and we need text rendering, in this case we need a
|
||||||
* video_pad to combine the video with the text or visualizations */
|
* video_pad to combine the video with the text or visualizations */
|
||||||
if (need_text && !need_video) {
|
if (need_text && !need_video && !playsink->text_sink) {
|
||||||
if (playsink->video_pad) {
|
if (playsink->video_pad) {
|
||||||
need_video = TRUE;
|
need_video = TRUE;
|
||||||
} else if (need_audio) {
|
} else if (need_audio) {
|
||||||
@ -2947,6 +2947,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
|||||||
playsink->textchain->textsinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
playsink->textchain->textsinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (need_vis || need_video) {
|
||||||
if (need_vis) {
|
if (need_vis) {
|
||||||
GstPad *srcpad;
|
GstPad *srcpad;
|
||||||
|
|
||||||
@ -2966,6 +2967,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
|||||||
}
|
}
|
||||||
gst_pad_link_full (playsink->textchain->srcpad,
|
gst_pad_link_full (playsink->textchain->srcpad,
|
||||||
playsink->videochain->sinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
playsink->videochain->sinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
||||||
|
}
|
||||||
|
|
||||||
activate_chain (GST_PLAY_CHAIN (playsink->textchain), TRUE);
|
activate_chain (GST_PLAY_CHAIN (playsink->textchain), TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user