Commit f185b350 authored by Max Kellermann's avatar Max Kellermann

decoder_api: clear initial_seek_running on error

Fixes possible assertion failure.
parent 83f6498a
......@@ -180,10 +180,12 @@ void decoder_seek_error(struct decoder * decoder)
assert(dc->pipe != NULL);
if (decoder->initial_seek_running)
if (decoder->initial_seek_running) {
/* d'oh, we can't seek to the sub-song start position,
what now? - no idea, ignoring the problem for now. */
decoder->initial_seek_running = false;
return;
}
assert(dc->command == DECODE_COMMAND_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