aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-12-17 00:56:48 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-12-17 00:56:48 +0000
commitdeac206b1ec519ddb7e3aa33d0471985a21c0c2a (patch)
tree4db39fba5e79a2e96cc4b44381816eecbfef9609 /src/decode.c
parenta34c4af1721a876fcd8c9103f9295e39a77f0d33 (diff)
downloadmpd-deac206b1ec519ddb7e3aa33d0471985a21c0c2a.tar.gz
mpd-deac206b1ec519ddb7e3aa33d0471985a21c0c2a.tar.xz
mpd-deac206b1ec519ddb7e3aa33d0471985a21c0c2a.zip
call dropBufferedAudio() when pausing
git-svn-id: https://svn.musicpd.org/mpd/trunk@3732 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/decode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/decode.c b/src/decode.c
index 34904a4c9..25b34ded8 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -243,7 +243,10 @@ int decodeSeek(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb,
} \
pc->pause = 0; \
kill(getppid(),SIGUSR1); \
- if(pause) closeAudioDevice(); \
+ if(pause) { \
+ dropBufferedAudio(); \
+ closeAudioDevice(); \
+ } \
} \
if(pc->seek) { \
dropBufferedAudio(); \