Commit ef40e362 authored by Max Kellermann's avatar Max Kellermann

decoder_api: cancel initial seek when song is not seekable

Fixes assertion failure.
parent 6452461c
ver 0.16.6 (2010/??/??)
* decoder:
- fix assertion failure when resuming streams
* event_pipe: fix WIN32 regression
* define WINVER in ./configure
* WIN32: autodetect filesystem encoding
......
......@@ -95,6 +95,12 @@ decoder_prepare_initial_seek(struct decoder *decoder)
return true;
if (decoder->initial_seek_pending) {
if (!dc->seekable) {
/* seeking is not possible */
decoder->initial_seek_pending = false;
return false;
}
if (dc->command == DECODE_COMMAND_NONE) {
/* begin initial seek */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment