diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-03 12:34:25 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-03 12:34:25 +0000 |
commit | 710ec5695b549c1875cf0cdd274d7c00b11494a5 (patch) | |
tree | 64e079133c3fb1c983e8b44a2b24d0ddc7cb0651 /src/player.c | |
parent | c453f7dc52fcfd9233e857a690bf375330d6cfe0 (diff) | |
download | mpd-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 'src/player.c')
-rw-r--r-- | src/player.c | 6 |
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() { |