aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-26 16:32:39 +0100
committerMax Kellermann <max@duempel.org>2015-10-26 16:32:39 +0100
commit93c97972b9cb41284f8af8b653e056484bbf4717 (patch)
tree1a8174943f0be334fc79dccc614a99937a92090a /src
parentac61d43720393803cb3f6bc5c74aea588e1ca68d (diff)
downloadmpd-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.cxx6
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))