diff options
author | Max Kellermann <max@duempel.org> | 2009-11-14 00:45:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-14 00:45:52 +0100 |
commit | 409a3ed808ea111cd4c62ac71c66cef7b86615af (patch) | |
tree | f5e78302249bab8464f2b115f7537b1d29eeef3e /src | |
parent | 76283c25a5f17873b37f18564e62f9e16ba2e90e (diff) | |
download | mpd-409a3ed808ea111cd4c62ac71c66cef7b86615af.tar.gz mpd-409a3ed808ea111cd4c62ac71c66cef7b86615af.tar.xz mpd-409a3ed808ea111cd4c62ac71c66cef7b86615af.zip |
player_thread: corrected two assertions on "queued"
At this point, the function may be called from the SEEK handler.
Diffstat (limited to '')
-rw-r--r-- | src/player_thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |