aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-04 22:07:01 +0200
committerMax Kellermann <max@duempel.org>2011-10-04 22:29:31 +0200
commitf185b35088cc5b1025c3e60b5f72030627e79878 (patch)
tree2f8cad2ee0746b530ab3214cd722fba8e0c15cab /src
parent83f6498aac5f3d62611d392c8a35f1b1fcf1e75a (diff)
downloadmpd-f185b35088cc5b1025c3e60b5f72030627e79878.tar.gz
mpd-f185b35088cc5b1025c3e60b5f72030627e79878.tar.xz
mpd-f185b35088cc5b1025c3e60b5f72030627e79878.zip
decoder_api: clear initial_seek_running on error
Fixes possible assertion failure.
Diffstat (limited to 'src')
-rw-r--r--src/decoder_api.c4
1 files changed, 3 insertions, 1 deletions
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);