Skip to content

Commit ff91487

Browse files
committed
Merge pull request #4 from mschwendt/master
fix API usage to stop disappearing track duration at start of playback
2 parents fae5d38 + d8fc8ae commit ff91487

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

audacious3.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,13 @@ static gboolean play(const gchar *_filename, VFSFile *file)
360360

361361
//plugin_cfg.time = lret;
362362
xmp_get_module_info(ctx, &plugin_cfg.mod_info);
363+
xmp_get_frame_info(ctx, &fi);
363364

364365
tuple = tuple_new_from_filename(filename);
365366
g_free(filename);
366367
tuple_set_str(tuple, FIELD_TITLE, NULL, plugin_cfg.mod_info.mod->name);
367368
tuple_set_str(tuple, FIELD_CODEC, NULL, plugin_cfg.mod_info.mod->type);
368-
tuple_set_int(tuple, FIELD_LENGTH, NULL, lret);
369+
tuple_set_int(tuple, FIELD_LENGTH, NULL, fi.total_time);
369370
#if _AUD_PLUGIN_VERSION < 45
370371
ipb->set_tuple(ipb, tuple);
371372

0 commit comments

Comments
 (0)