Commit 903a07b8 authored by Max Kellermann's avatar Max Kellermann

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.
parent a7318a64
...@@ -363,12 +363,10 @@ static void player_process_command(struct player *player) ...@@ -363,12 +363,10 @@ static void player_process_command(struct player *player)
return; return;
} }
if (dc.pipe != NULL && dc.pipe != player->pipe) { if (dc.pipe != NULL && dc.pipe != player->pipe)
/* the decoder is already decoding the song - /* the decoder is already decoding the song -
stop it and reset the position */ stop it and reset the position */
player_dc_stop(player); player_dc_stop(player);
dc_stop(&pc.notify);
}
pc.next_song = NULL; pc.next_song = NULL;
player->queued = false; player->queued = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment