aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decode.c')
-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(); \