• Max Kellermann's avatar
    player_thread: request next song only if new one starts playing · b14e48f9
    Max Kellermann authored
    The player_thread loop requests the next song from the playlist as
    soon as the decoder finishes the song which is currently being played.
    This is superfluous, and can lead to synchronization errors and wrong
    results.  The playlist already knows when the player starts playing
    the next song (player_wait_for_decoder() triggers the PLAYLIST event),
    and will then trigger the scheduler to provide the next song.
    b14e48f9
player_thread.c 12.9 KB