From 216258fbc275c5acdec6d91028cf4f274bb5f9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 26 May 2011 11:41:50 +0200 Subject: [PATCH] playbin2: Let the input-selectors sync all streams to the running time This is especially needed when switching between a non-sparse and sparse video stream, see bug #537382. It also lowers the time needed for switching between streams a bit. --- gst/playback/gstplaybin2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index c46f1108f4..93f409bff3 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -2515,6 +2515,8 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group) (_("Missing element '%s' - check your GStreamer installation."), "input-selector"), (NULL)); } else { + g_object_set (select->selector, "sync-streams", TRUE, NULL); + g_signal_connect (select->selector, "notify::active-pad", G_CALLBACK (selector_active_pad_changed), playbin);