aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-29 23:03:29 +0200
committerMax Kellermann <max@duempel.org>2014-08-29 23:03:29 +0200
commit8b6212777016404ce265631136bc4cccc9bc842c (patch)
tree173ce102df8c874577bacec047a2fad02d6e6080 /src
parentf06fe1ea98ff144f12e9da9a51cdb0c39737b810 (diff)
downloadmpd-8b6212777016404ce265631136bc4cccc9bc842c.tar.gz
mpd-8b6212777016404ce265631136bc4cccc9bc842c.tar.xz
mpd-8b6212777016404ce265631136bc4cccc9bc842c.zip
decoder/gme: fix song duration
The unit of gme_info_t::length is milliseconds, not centiseconds.
Diffstat (limited to 'src')
-rw-r--r--src/decoder/GmeDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/GmeDecoderPlugin.cxx b/src/decoder/GmeDecoderPlugin.cxx
index d67ee4b42..9c9b19478 100644
--- a/src/decoder/GmeDecoderPlugin.cxx
+++ b/src/decoder/GmeDecoderPlugin.cxx
@@ -235,7 +235,7 @@ gme_scan_file(const char *path_fs,
if (ti->length > 0)
tag_handler_invoke_duration(handler, handler_ctx,
- ti->length / 100);
+ ti->length / 1000);
if (ti->song != nullptr) {
if (gme_track_count(emu) > 1) {