playsink: Fix subpicture overlay when deinterlacing disabled.

Fix a bug when reconfiguring the playsink where the subpicture
stream is broken by attempting to connect it through
streamsynchroniser and second time.
This commit is contained in:
Jan Schmidt 2010-10-26 16:41:28 +01:00
parent 79020ae3f6
commit ee303c441d

View file

@ -2489,6 +2489,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
NULL); NULL);
add_chain (GST_PLAY_CHAIN (playsink->textchain), TRUE); add_chain (GST_PLAY_CHAIN (playsink->textchain), TRUE);
if (!playsink->text_sinkpad_stream_synchronizer) {
playsink->text_sinkpad_stream_synchronizer = playsink->text_sinkpad_stream_synchronizer =
gst_element_get_request_pad (GST_ELEMENT_CAST gst_element_get_request_pad (GST_ELEMENT_CAST
(playsink->stream_synchronizer), "sink_%d"); (playsink->stream_synchronizer), "sink_%d");
@ -2504,6 +2505,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
playsink->text_sinkpad_stream_synchronizer); playsink->text_sinkpad_stream_synchronizer);
gst_pad_link_full (playsink->text_srcpad_stream_synchronizer, gst_pad_link_full (playsink->text_srcpad_stream_synchronizer,
playsink->textchain->textsinkpad, GST_PAD_LINK_CHECK_NOTHING); playsink->textchain->textsinkpad, GST_PAD_LINK_CHECK_NOTHING);
}
if (need_vis) { if (need_vis) {
GstPad *srcpad; GstPad *srcpad;