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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user