player_thread: don't call dc_stop() twice
In the "CANCEL" command handler, the decoder is stopped twice: first by player_dc_stop(), then by dc_stop(). Remove the latter.
This commit is contained in:
parent
a7318a6476
commit
903a07b80e
@ -363,12 +363,10 @@ static void player_process_command(struct player *player)
|
||||
return;
|
||||
}
|
||||
|
||||
if (dc.pipe != NULL && dc.pipe != player->pipe) {
|
||||
if (dc.pipe != NULL && dc.pipe != player->pipe)
|
||||
/* the decoder is already decoding the song -
|
||||
stop it and reset the position */
|
||||
player_dc_stop(player);
|
||||
dc_stop(&pc.notify);
|
||||
}
|
||||
|
||||
pc.next_song = NULL;
|
||||
player->queued = false;
|
||||
|
Loading…
Reference in New Issue
Block a user