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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user