From 297d749fc8edf6aa78495372fdcf9857225a3b16 Mon Sep 17 00:00:00 2001 From: Serge Ziryukin Date: Wed, 15 Jul 2009 12:13:02 +0300 Subject: modplug: get track length --- src/decoder/modplug_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/decoder/modplug_plugin.c b/src/decoder/modplug_plugin.c index f636f2fa6..31f0a47c2 100644 --- a/src/decoder/modplug_plugin.c +++ b/src/decoder/modplug_plugin.c @@ -186,7 +186,7 @@ static struct tag *mod_tagdup(const char *file) return NULL; } ret = tag_new(); - ret->time = 0; + ret->time = ModPlug_GetLength(f) / 1000; title = g_strdup(ModPlug_GetName(f)); if (title) -- cgit v1.2.3