From df09075afc13c1302facaa46b12df5251861e117 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 13 Nov 2008 01:57:15 +0100 Subject: 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. --- src/player_thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/player_thread.c') 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(); -- cgit v1.2.3