From 409a3ed808ea111cd4c62ac71c66cef7b86615af Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Nov 2009 00:45:47 +0100 Subject: player_thread: corrected two assertions on "queued" At this point, the function may be called from the SEEK handler. --- src/player_thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/player_thread.c') diff --git a/src/player_thread.c b/src/player_thread.c index 4f754241b..907d7a92a 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -134,7 +134,7 @@ player_dc_start(struct player *player, struct music_pipe *pipe) { struct decoder_control *dc = player->dc; - assert(player->queued); + assert(player->queued || pc.command == PLAYER_COMMAND_SEEK); assert(pc.next_song != NULL); dc_start(dc, pc.next_song, player_buffer, pipe); @@ -187,7 +187,7 @@ player_wait_for_decoder(struct player *player) { struct decoder_control *dc = player->dc; - assert(player->queued); + assert(player->queued || pc.command == PLAYER_COMMAND_SEEK); assert(pc.next_song != NULL); player->queued = false; -- cgit v1.2.3