• Max Kellermann's avatar
    playlist: simplified playlist.queued updates · e27a665b
    Max Kellermann authored
    Before every operation which modifies the playlist, remember a pointer
    to the song struct.  After the modification, determine the "next song"
    again, and if it differs, dequeue and queue the new song.
    
    This removes a lot of complexity from the playlist update code, and
    makes it more robust.
    e27a665b
playlist.c 25.5 KB