After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 625118 - [playbin2] Race condition with EOS events in gapless mode
[playbin2] Race condition with EOS events in gapless mode
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal major
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-23 13:13 UTC by Sebastian Dröge (slomo)
Modified: 2010-07-24 16:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2010-07-23 13:13: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
Comment 1 Sebastian Dröge (slomo) 2010-07-24 16:19:59 UTC
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.