diff options
author | Max Kellermann <max@duempel.org> | 2009-02-04 18:52:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-04 18:52:37 +0100 |
commit | e27a665b8996dea78a0aebc32e68ffce6c3c239b (patch) | |
tree | ad821ff4dc95e192d27e3737a0a99211bf7dd85c /src/queue_save.c | |
parent | b6e5c248786415bd0f69ca62eb0f6aa6862cc2ad (diff) | |
download | mpd-e27a665b8996dea78a0aebc32e68ffce6c3c239b.tar.gz mpd-e27a665b8996dea78a0aebc32e68ffce6c3c239b.tar.xz mpd-e27a665b8996dea78a0aebc32e68ffce6c3c239b.zip |
playlist: simplified playlist.queued updates
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.
Diffstat (limited to 'src/queue_save.c')
0 files changed, 0 insertions, 0 deletions