diff options
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 359c8db47..e56b7438d 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -135,8 +135,7 @@ searchStatsInDirectory(struct song *song, void *data) if (locate_song_match(song, stats->criteria)) { stats->numberOfSongs++; - if (song->tag->time > 0) - stats->playTime += song->tag->time; + stats->playTime += song_get_duration(song); } return 0; |