[gstreamer-bugs] [Bug 584987] [playbin2] [gapless] Fire a track-changed message on track change.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Nov 17 02:58:45 PST 2009


https://bugzilla.gnome.org/show_bug.cgi?id=584987
  GStreamer | gst-plugins-base | git

--- Comment #7 from Sebastian Dröge <slomo at circular-chaos.org> 2009-11-17 10:58:40 UTC ---
Ok, I talked with Wim about this a bit and the plan would now be the following
(such a sink-message event is not easy to implement, Wim tried it once and it
was more work than expected):

First of all, playsink keeps track of all NEWSEGMENT events and remembers the
segments. On all streams. This allows us to get the running time later.

Now when a switch from one to the next group happens, after the current group
was deactivated playbin2 would take the stream locks and push a custom
"stream-start-marker" event downstream which is synchronized to the stream.
When this arrives in playsink, playsink knows on the next newsegment event that
it now has the running time of the new group's streams. this then gets reported
to playbin2 to trigger a clock wait that posts the track-changed message.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list