GNOME Bugzilla – Bug 625118
[playbin2] Race condition with EOS events in gapless mode
Last modified: 2010-07-24 16:19:59 UTC
Currently there's a race condition with the EOS events in gapless mode. If streams end at different times, the EOS of early streams could arrive the sinks before the next stream is selected, which will then cause the sink to not accept any new data. I'll fix this in the next days in the new streamsynchronizer helper element
commit 175aae9e85365f681e73a7bf427a6685e6f4faa1 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Sat Jul 24 18:17:43 2010 +0200 streamsynchronizer: Delay EOS events until all streams are EOS This fixes a race condition in playbin2's gapless mode, where the EOS of other streams might arrive in the sinks before the last stream ends and the switch to the new track happens. The EOS sinks won't accept any new data then and playback stops. To prevent this, delay all EOS events until all streams are EOS and advance the sinks of the EOS streams by filler newsegment events if necessary. Fixes bug #625118.