mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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.
This commit is contained in:
parent
5488877090
commit
216258fbc2
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue