From 7c25d83f1cc4c7db2d2d3f4506525dd056b885e8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 12:14:27 +0200 Subject: Tag: use SignedSongTime for the song duration --- src/db/Helpers.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/Helpers.cxx') diff --git a/src/db/Helpers.cxx b/src/db/Helpers.cxx index 089b2b17d..8df6c265c 100644 --- a/src/db/Helpers.cxx +++ b/src/db/Helpers.cxx @@ -40,8 +40,8 @@ static void StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums, const Tag &tag) { - if (tag.time > 0) - stats.total_duration += tag.time; + if (!tag.duration.IsNegative()) + stats.total_duration += tag.duration.ToS(); for (const auto &item : tag) { switch (item.type) { -- cgit v1.2.3