From 4326a465afb45622d22d2dd52fe6f4d25f1a17ef Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 11 Oct 2009 17:14:10 +0200 Subject: added total playtime display to statusbar --- cdumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cdumb.c') diff --git a/cdumb.c b/cdumb.c index fc29860f..0aaaec71 100644 --- a/cdumb.c +++ b/cdumb.c @@ -781,7 +781,7 @@ cdumb_insert (DB_playItem_t *after, const char *fname) { deadbeef->pl_add_meta (it, "title", NULL); } dumb_it_do_initial_runthrough (duh); - it->duration = duh_get_length (duh)/65536.0f; + deadbeef->pl_set_item_duration (it, duh_get_length (duh)/65536.0f); it->filetype = ftype; // printf ("duration: %f\n", plugin.info.duration); after = deadbeef->pl_insert_item (after, it); -- cgit v1.2.3