decoder/API: check initial_seek_running in _check_cancel_read()

The "seeking" flag is not set for the initial seek, and so
decoder_read() could be canceled when another SEEK was emitted during
initial seek.

This fixes several seek problems, for example the one reported for the
FLAC decoder plugin:

 https://bugs.musicpd.org/view.php?id=4552
This commit is contained in:
Max Kellermann
2016-07-06 15:37:11 +02:00
parent f9130f42a2
commit 6f59d71e07
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
ver 0.19.17 (not yet released)
* decoder
- flac: fix assertion failure while seeking
- fix seek problems in several plugins
* fix spurious seek error "Failed to allocate silence buffer"
* replay gain: fix "replay_gain_handler mixer" setting
* DSD: use 0x69 as silence pattern