decoder/Bridge: call PcmConvert::Reset() after seeking

This commit is contained in:
Max Kellermann 2017-01-11 15:32:57 +01:00
parent 8088469eca
commit 7a3a793a12
2 changed files with 5 additions and 0 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.20.2 (not yet released)
* decoder
- flac: add options "probesize" and "analyzeduration"
* resampler
- libsamplerate: reset state after seeking
* output
- alsa: fix the DSD_U32 sample rate

View File

@ -317,6 +317,9 @@ DecoderBridge::CommandFinished()
dc.pipe->Clear(*dc.buffer);
if (convert != nullptr)
convert->Reset();
timestamp = dc.seek_time.ToDoubleS();
}