decoder_api: clear initial_seek_running on error
Fixes possible assertion failure.
This commit is contained in:
parent
83f6498aac
commit
f185b35088
@ -180,10 +180,12 @@ void decoder_seek_error(struct decoder * decoder)
|
|||||||
|
|
||||||
assert(dc->pipe != NULL);
|
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,
|
/* d'oh, we can't seek to the sub-song start position,
|
||||||
what now? - no idea, ignoring the problem for now. */
|
what now? - no idea, ignoring the problem for now. */
|
||||||
|
decoder->initial_seek_running = false;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
assert(dc->command == DECODE_COMMAND_SEEK);
|
assert(dc->command == DECODE_COMMAND_SEEK);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user