aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.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/player_thread.c
parent216dff98d2f558f4095de50c6a848e3b074c70e6 (diff)
downloadmpd-6622d69fda7cd885e4695e865a9f9c70392257e2.tar.gz
mpd-6622d69fda7cd885e4695e865a9f9c70392257e2.tar.xz
mpd-6622d69fda7cd885e4695e865a9f9c70392257e2.zip
song: added function song_get_duration()
Diffstat (limited to '')
-rw-r--r--src/player_thread.c3
1 files changed, 1 insertions, 2 deletions
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);