mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
playsink: relink text_pad in case of reconfiguration
In case of reconfiguration, text_pad should be re-connected with stream synchronizer sink pad. Otherwise we'll leave an unlinked pad around if there always was a streamsynchronizer text pad. https://bugzilla.gnome.org/show_bug.cgi?id=756804
This commit is contained in:
parent
e98b96247f
commit
68ec631db7
1 changed files with 5 additions and 5 deletions
|
@ -3700,13 +3700,13 @@ gst_play_sink_do_reconfigure (GstPlaySink * playsink)
|
|||
g_value_unset (&item);
|
||||
g_assert (playsink->text_srcpad_stream_synchronizer);
|
||||
gst_iterator_free (it);
|
||||
|
||||
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->text_pad),
|
||||
playsink->text_sinkpad_stream_synchronizer);
|
||||
gst_pad_link_full (playsink->text_srcpad_stream_synchronizer,
|
||||
playsink->textchain->textsinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
||||
}
|
||||
|
||||
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->text_pad),
|
||||
playsink->text_sinkpad_stream_synchronizer);
|
||||
gst_pad_link_full (playsink->text_srcpad_stream_synchronizer,
|
||||
playsink->textchain->textsinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
||||
|
||||
if (need_vis || need_video) {
|
||||
if (need_vis) {
|
||||
GstPad *srcpad;
|
||||
|
|
Loading…
Reference in a new issue