• 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
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...