aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-11 12:52:51 +0200
committerMax Kellermann <max@duempel.org>2008-10-11 12:52:51 +0200
commit42409a35e2468f13a03d23417f73730f1f8e41d5 (patch)
tree50e4ac1cd81ad5b76f64a60996f748b19e8e74cb /src/player_thread.c
parentdd7711d86c502c8d302b791d19a836360e758e12 (diff)
downloadmpd-42409a35e2468f13a03d23417f73730f1f8e41d5.tar.gz
mpd-42409a35e2468f13a03d23417f73730f1f8e41d5.tar.xz
mpd-42409a35e2468f13a03d23417f73730f1f8e41d5.zip
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.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c3
1 files changed, 2 insertions, 1 deletions
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;