diff options
Diffstat (limited to 'src/decode.c')
-rw-r--r-- | src/decode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/decode.c b/src/decode.c index 3f9c8610d..fcda78a19 100644 --- a/src/decode.c +++ b/src/decode.c @@ -124,7 +124,11 @@ static int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) ERROR("problems opening audio device while playing \"%s\"\n", pc->utf8url); \ quitDecode(pc,dc); \ return; \ - } \ + } \ + if (pause) { \ + dropBufferedAudio(); \ + closeAudioDevice(); \ + } \ pc->totalTime = dc->totalTime; \ pc->sampleRate = dc->audioFormat.sampleRate; \ pc->bits = dc->audioFormat.bits; \ |