TagHandler: pass SongTime to duration()

This commit is contained in:
Max Kellermann
2014-08-29 22:43:36 +02:00
parent d9d97bd17b
commit 3158955198
23 changed files with 83 additions and 68 deletions

View File

@@ -102,7 +102,7 @@ adplug_scan_file(Path path_fs,
return false;
tag_handler_invoke_duration(handler, handler_ctx,
player->songlength() / 1000);
SongTime::FromMS(player->songlength()));
if (handler->tag != nullptr) {
adplug_scan_tag(TAG_TITLE, player->gettitle(),