modplug: get track length

This commit is contained in:
Serge Ziryukin 2009-07-15 12:13:02 +03:00 committed by Max Kellermann
parent 6233de0546
commit 297d749fc8

View File

@ -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)