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:
Max Kellermann 2009-03-11 09:20:33 +01:00
parent a7318a6476
commit 903a07b80e

View File

@ -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;