aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-03 12:34:25 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-03 12:34:25 +0000
commit710ec5695b549c1875cf0cdd274d7c00b11494a5 (patch)
tree64e079133c3fb1c983e8b44a2b24d0ddc7cb0651 /src/player.c
parentc453f7dc52fcfd9233e857a690bf375330d6cfe0 (diff)
downloadmpd-710ec5695b549c1875cf0cdd274d7c00b11494a5.tar.gz
mpd-710ec5695b549c1875cf0cdd274d7c00b11494a5.tar.xz
mpd-710ec5695b549c1875cf0cdd274d7c00b11494a5.zip
better method for computing total time played
git-svn-id: https://svn.musicpd.org/mpd/trunk@1317 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/player.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/player.c b/src/player.c
index 9427ddf21..4b96f8584 100644
--- a/src/player.c
+++ b/src/player.c
@@ -442,11 +442,7 @@ int getPlayerSoftwareVolume() {
double getPlayerTotalPlayTime() {
PlayerControl * pc = &(getPlayerData()->playerControl);
- if(pc->state==PLAYER_STATE_STOP) {
- return pc->totalPlayTime;
- }
-
- return pc->totalPlayTime+pc->elapsedTime-pc->beginTime;
+ return pc->totalPlayTime;
}
unsigned int getPlayerSampleRate() {