diff options
author | Max Kellermann <max@duempel.org> | 2009-12-26 13:56:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-26 13:56:35 +0100 |
commit | 6622d69fda7cd885e4695e865a9f9c70392257e2 (patch) | |
tree | df8e9a871b9709bb741dc1bdc7fb5c1a3385e34e /src/dbUtils.c | |
parent | 216dff98d2f558f4095de50c6a848e3b074c70e6 (diff) | |
download | mpd-6622d69fda7cd885e4695e865a9f9c70392257e2.tar.gz mpd-6622d69fda7cd885e4695e865a9f9c70392257e2.tar.xz mpd-6622d69fda7cd885e4695e865a9f9c70392257e2.zip |
song: added function song_get_duration()
Diffstat (limited to 'src/dbUtils.c')
-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; |