From f185b35088cc5b1025c3e60b5f72030627e79878 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Oct 2011 22:07:01 +0200 Subject: decoder_api: clear initial_seek_running on error Fixes possible assertion failure. --- src/decoder_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/decoder_api.c b/src/decoder_api.c index 99c02db87..f0ba3b01f 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -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); -- cgit v1.2.3