better method for computing total time played

git-svn-id: https://svn.musicpd.org/mpd/trunk@1317 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-06-03 12:34:25 +00:00
parent c453f7dc52
commit 710ec5695b
3 changed files with 6 additions and 14 deletions

View File

@@ -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() {