aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-13 01:57:15 +0100
committerMax Kellermann <max@duempel.org>2008-11-13 01:57:15 +0100
commitdf09075afc13c1302facaa46b12df5251861e117 (patch)
treef9a1e41e7c05105bd5e30e2f757372b71ff8dada /src/player_thread.c
parentae9bb9295278be1dac86bad6594a9b1b2251e9a5 (diff)
downloadmpd-df09075afc13c1302facaa46b12df5251861e117.tar.gz
mpd-df09075afc13c1302facaa46b12df5251861e117.tar.xz
mpd-df09075afc13c1302facaa46b12df5251861e117.zip
player: assert that there was no previous "next song chunk"
When assigning the next_song_chunk variable, it must have been empty. If not, there may be 3 songs overlapping in the music pipe.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index ddd87cc06..21bb61da6 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -357,6 +357,7 @@ static void do_play(void)
/* the decoder has finished the current song;
make it decode the next song */
assert(pc.next_song != NULL);
+ assert(player.next_song_chunk == -1);
player.queued = false;
player.next_song_chunk = music_pipe_tail_index();