From 42409a35e2468f13a03d23417f73730f1f8e41d5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 11 Oct 2008 12:52:51 +0200 Subject: player: removed player_control.fileTime This variable is superfluous, it is only used to copy its value to player_control.totalTime. Since the original source of this value (song->tag->time) will still be available at this point, we can safely remove fileTime. --- src/player_thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/player_thread.c') diff --git a/src/player_thread.c b/src/player_thread.c index b82005aec..61ef68389 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -60,7 +60,8 @@ static int waitOnDecode(int *decodeWaitedOn) return -1; } - pc.totalTime = pc.fileTime; + pc.totalTime = pc.next_song->tag != NULL + ? pc.next_song->tag->time : 0; pc.bitRate = 0; audio_format_clear(&pc.audio_format); *decodeWaitedOn = 1; -- cgit v1.2.3