aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-11 09:20:33 +0100
committerMax Kellermann <max@duempel.org>2009-03-11 09:20:33 +0100
commit903a07b80e61581555971d1d7150044790130821 (patch)
treeda2d0da2f9a7f1071af1f04cceccd002dc750bc5 /src/player_thread.c
parenta7318a6476983740c208d5430eb861cb8739d52a (diff)
downloadmpd-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/player_thread.c')
-rw-r--r--src/player_thread.c4
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;