• Max Kellermann's avatar
    player/Thread: fix "single" mode race condition · 923e6673
    Max Kellermann authored
    If the decoder finishes decoding the current song between the two
    IsIdle() checks, MPD stops playback instead of starting the decoder
    for the next song.
    
    This is usually not visible problem, because the main thread restarts
    it via playlist::ResumePlayback(), but that way it, ignores "single"
    mode.
    
    As a workaround, this commit adds another "queued" check which
    re-enters the player loop and checks again whether to start the
    decoder.
    
    Closes https://github.com/MusicPlayerDaemon/MPD/issues/556
    923e6673
Name
Last commit
Last update
..
Control.cxx Loading commit data...
Control.hxx Loading commit data...
CrossFade.cxx Loading commit data...
CrossFade.hxx Loading commit data...
Listener.hxx Loading commit data...
Outputs.hxx Loading commit data...
Thread.cxx Loading commit data...