summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-06-10 15:50:12 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-06-10 10:38:45 +0200
commit50beddd474f44767d0f2da3f2036cd51fb7ea490 (patch)
treeb24a814f4574ccd4fe56b3b0ea4e88651dfc8ab4 /gst
parent53c5112b9095c6f3598cc1e2fb1630cf049f346f (diff)
playsink: cannot enable text flag while playing
when text playbin is not enabled in the beginning, then video_srcpad_stream_synchronizer gets linked to videochain->sinkpad and when we try to enable text bin during play, since it is already linked to videochain, text chain does not get linked properly. Hence unlinking the same before linking to text chain https://bugzilla.gnome.org/show_bug.cgi?id=748908
Diffstat (limited to 'gst')
-rw-r--r--gst/playback/gstplaysink.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
index 3fe476340..1b00cd74e 100644
--- a/gst/playback/gstplaysink.c
+++ b/gst/playback/gstplaysink.c
@@ -3744,12 +3744,17 @@ gst_play_sink_do_reconfigure (GstPlaySink * playsink)
GST_PAD_LINK_CHECK_NOTHING);
gst_object_unref (srcpad);
} else {
- if (need_deinterlace)
+ if (need_deinterlace) {
+ gst_pad_unlink (playsink->videodeinterlacechain->srcpad,
+ playsink->videochain->sinkpad);
gst_pad_link_full (playsink->videodeinterlacechain->srcpad,
playsink->textchain->videosinkpad, GST_PAD_LINK_CHECK_NOTHING);
- else
+ } else {
+ gst_pad_unlink (playsink->video_srcpad_stream_synchronizer,
+ playsink->videochain->sinkpad);
gst_pad_link_full (playsink->video_srcpad_stream_synchronizer,
playsink->textchain->videosinkpad, GST_PAD_LINK_CHECK_NOTHING);
+ }
}
gst_pad_link_full (playsink->textchain->srcpad,
playsink->videochain->sinkpad, GST_PAD_LINK_CHECK_NOTHING);