• Max Kellermann's avatar
    player/Thread: call OnPlayerSync() in SeekDecoder() · 32f4f158
    Max Kellermann authored
    This fixes a spurious "single" mode bug which occurs when using "play"
    or "seek" to start playback on the song that is currently paused: in
    that case, the main thread never queues the next song, and at the end
    of the song, the player thread exits Run(), stopping playback, and
    after that, the main thread starts the next song without considering
    "single" mode.
    
    By calling OnPlayerSync(), we ensure that the main thread gets a
    chance to queue the next song before the player thread exits the Run()
    loop.
    
    Closes https://github.com/MusicPlayerDaemon/MPD/issues/850
    32f4f158
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...