playbin2: Let the input-selectors sync all streams to the running time
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 May 2011 09:41:50 +0000 (11:41 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 May 2011 09:41:50 +0000 (11:41 +0200)
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

index c46f110..93f409b 100644 (file)
@@ -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);