diff options
author | Max Kellermann <max@duempel.org> | 2015-10-26 16:32:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-26 16:32:39 +0100 |
commit | 93c97972b9cb41284f8af8b653e056484bbf4717 (patch) | |
tree | 1a8174943f0be334fc79dccc614a99937a92090a /src/decoder | |
parent | ac61d43720393803cb3f6bc5c74aea588e1ca68d (diff) | |
download | mpd-93c97972b9cb41284f8af8b653e056484bbf4717.tar.gz mpd-93c97972b9cb41284f8af8b653e056484bbf4717.tar.xz mpd-93c97972b9cb41284f8af8b653e056484bbf4717.zip |
decoder/gme: call decoder_seek_error() on seek error
Diffstat (limited to '')
-rw-r--r-- | src/decoder/plugins/GmeDecoderPlugin.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx index cc6ce5e5d..eab655c91 100644 --- a/src/decoder/plugins/GmeDecoderPlugin.cxx +++ b/src/decoder/plugins/GmeDecoderPlugin.cxx @@ -196,9 +196,11 @@ gme_file_decode(Decoder &decoder, Path path_fs) if (cmd == DecoderCommand::SEEK) { unsigned where = decoder_seek_time(decoder).ToMS(); gme_err = gme_seek(emu, where); - if (gme_err != nullptr) + if (gme_err != nullptr) { LogWarning(gme_domain, gme_err); - decoder_command_finished(decoder); + decoder_seek_error(decoder); + } else + decoder_command_finished(decoder); } if (gme_track_ended(emu)) |