aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/modplug_plugin.c
diff options
context:
space:
mode:
authorSerge Ziryukin <ftrvxmtrx@gmail.com>2009-07-15 12:13:02 +0300
committerMax Kellermann <max@duempel.org>2009-07-15 11:22:45 +0200
commit297d749fc8edf6aa78495372fdcf9857225a3b16 (patch)
tree825d47afe6978d608fc8d9ddb61338abe6ccc15f /src/decoder/modplug_plugin.c
parent6233de05464c11b714cbfcb2692ff22691b1475a (diff)
downloadmpd-297d749fc8edf6aa78495372fdcf9857225a3b16.tar.gz
mpd-297d749fc8edf6aa78495372fdcf9857225a3b16.tar.xz
mpd-297d749fc8edf6aa78495372fdcf9857225a3b16.zip
modplug: get track length
Diffstat (limited to '')
-rw-r--r--src/decoder/modplug_plugin.c2
1 files changed, 1 insertions, 1 deletions
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)