diff options
author | Max Kellermann <max@duempel.org> | 2011-10-04 22:07:01 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-04 22:29:31 +0200 |
commit | f185b35088cc5b1025c3e60b5f72030627e79878 (patch) | |
tree | 2f8cad2ee0746b530ab3214cd722fba8e0c15cab /src | |
parent | 83f6498aac5f3d62611d392c8a35f1b1fcf1e75a (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/decoder_api.c | 4 |
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); |