diff options
author | Max Kellermann <max@duempel.org> | 2008-11-13 02:09:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-13 02:09:33 +0100 |
commit | 709640422c07b8f79c9ffad6ffde0d1f5f317523 (patch) | |
tree | 373a331f0ff09a67487d4525e8a3fb9b8b7e3dc0 /src/player_thread.c | |
parent | 66ce1495f07cd065346cdc2067b034e142a0fa96 (diff) | |
download | mpd-709640422c07b8f79c9ffad6ffde0d1f5f317523.tar.gz mpd-709640422c07b8f79c9ffad6ffde0d1f5f317523.tar.xz mpd-709640422c07b8f79c9ffad6ffde0d1f5f317523.zip |
player: chop the tail of the music pipe after CANCEL
When a CANCEL command is received, the player should drop all chunks
of the next song. Added new funciton music_pipe_chop() which is used
for that.
Diffstat (limited to '')
-rw-r--r-- | src/player_thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c index 9a606d7d9..9f2ff4389 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -203,6 +203,7 @@ static void player_process_command(struct player *player) /* the decoder is already decoding the song - stop it and reset the position */ dc_stop(&pc.notify); + music_pipe_chop(player->next_song_chunk); player->next_song_chunk = -1; } |