aboutsummaryrefslogtreecommitdiff
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-26 13:56:35 +0100
committerMax Kellermann <max@duempel.org>2009-12-26 13:56:35 +0100
commit6622d69fda7cd885e4695e865a9f9c70392257e2 (patch)
treedf8e9a871b9709bb741dc1bdc7fb5c1a3385e34e /src/dbUtils.c
parent216dff98d2f558f4095de50c6a848e3b074c70e6 (diff)
song: added function song_get_duration()
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r--src/dbUtils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 359c8db4..e56b7438 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;