diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-12-17 00:56:48 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-12-17 00:56:48 +0000 |
commit | deac206b1ec519ddb7e3aa33d0471985a21c0c2a (patch) | |
tree | 4db39fba5e79a2e96cc4b44381816eecbfef9609 /src/decode.c | |
parent | a34c4af1721a876fcd8c9103f9295e39a77f0d33 (diff) | |
download | mpd-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.c | 5 |
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(); \ |