improve elapsed time handling

this also throws away hack that was used to count elapsed
time locally while polling mpd, it's not needed anymore.
This commit is contained in:
Andrzej Rybczak
2009-10-30 20:04:47 +01:00
parent b6059e2255
commit 0a95aebd7c
3 changed files with 12 additions and 23 deletions

View File

@@ -126,7 +126,8 @@ namespace MPD
bool isPlaying() const { return GetState() > psStop; }
PlayerState GetState() const{ return itsCurrentStatus ? PlayerState(mpd_status_get_state(itsCurrentStatus)) : psUnknown; }
PlayerState GetState() const { return itsCurrentStatus ? PlayerState(mpd_status_get_state(itsCurrentStatus)) : psUnknown; }
PlayerState GetOldState() const { return itsOldStatus ? PlayerState(mpd_status_get_state(itsOldStatus)) : psUnknown; }
bool GetRepeat() const { return itsCurrentStatus ? mpd_status_get_repeat(itsCurrentStatus) : 0; }
bool GetRandom() const { return itsCurrentStatus ? mpd_status_get_random(itsCurrentStatus) : 0; }
bool GetSingle() const { return itsCurrentStatus ? mpd_status_get_single(itsCurrentStatus) : 0; }