aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-03-21 03:54:14 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-03-21 03:54:14 +0000
commit2a0fa93b16969be8a3c0a6869c05751d753a6abe (patch)
treeb0ff449427f76b1a5849a802582207a99d0dc957 /src/decode.c
parentee8172643e69015a3bf27245ed006edc4885892b (diff)
downloadmpd-2a0fa93b16969be8a3c0a6869c05751d753a6abe.tar.gz
mpd-2a0fa93b16969be8a3c0a6869c05751d753a6abe.tar.xz
mpd-2a0fa93b16969be8a3c0a6869c05751d753a6abe.zip
drop the current audio buffer when seeking
git-svn-id: https://svn.musicpd.org/mpd/trunk@3107 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c
index c91b5c92a..fc91cd708 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -246,6 +246,7 @@ int decodeSeek(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb,
if(pause) closeAudioDevice(); \
} \
if(pc->seek) { \
+ dropBufferedAudio(); \
if(decodeSeek(pc,dc,cb,&decodeWaitedOn,&next) == 0) { \
doCrossFade = 0; \
nextChunk = -1; \