diff options
author | Max Kellermann <max@duempel.org> | 2009-03-11 09:20:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-11 09:20:33 +0100 |
commit | 903a07b80e61581555971d1d7150044790130821 (patch) | |
tree | da2d0da2f9a7f1071af1f04cceccd002dc750bc5 /src | |
parent | a7318a6476983740c208d5430eb861cb8739d52a (diff) | |
download | mpd-903a07b80e61581555971d1d7150044790130821.tar.gz mpd-903a07b80e61581555971d1d7150044790130821.tar.xz mpd-903a07b80e61581555971d1d7150044790130821.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/player_thread.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/player_thread.c b/src/player_thread.c index 35d403044..54c83c6b5 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -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; |