From 8b6212777016404ce265631136bc4cccc9bc842c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 23:03:29 +0200 Subject: decoder/gme: fix song duration The unit of gme_info_t::length is milliseconds, not centiseconds. --- src/decoder/GmeDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/GmeDecoderPlugin.cxx') 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) { -- cgit v1.2.3