From 6622d69fda7cd885e4695e865a9f9c70392257e2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Dec 2009 13:56:35 +0100 Subject: song: added function song_get_duration() --- src/player_thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/player_thread.c') diff --git a/src/player_thread.c b/src/player_thread.c index 83f348d19..1a92a3182 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -212,8 +212,7 @@ player_wait_for_decoder(struct player *player) player_lock(); /* update player_control's song information */ - pc.total_time = pc.next_song->tag != NULL - ? pc.next_song->tag->time : 0; + pc.total_time = song_get_duration(pc.next_song); pc.bit_rate = 0; audio_format_clear(&pc.audio_format); -- cgit v1.2.3