diff options
author | Max Kellermann <max@duempel.org> | 2014-08-29 13:13:08 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-29 13:20:58 +0200 |
commit | 147d301f102512b1a64c85e3896bdd466fb634af (patch) | |
tree | 28678be7dea3760074bd2e8ce2fed07cd8fc8aaf /src/PlayerThread.cxx | |
parent | 75a89c59838ff764b55ba3ce359d59d031446b3d (diff) | |
download | mpd-147d301f102512b1a64c85e3896bdd466fb634af.tar.gz mpd-147d301f102512b1a64c85e3896bdd466fb634af.tar.xz mpd-147d301f102512b1a64c85e3896bdd466fb634af.zip |
MultipleOutputs: use SignedSongTime for elapsed_time
Diffstat (limited to 'src/PlayerThread.cxx')
-rw-r--r-- | src/PlayerThread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index e4fc84da1..51d6ee0e8 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -674,8 +674,8 @@ Player::ProcessCommand() pc.Lock(); } - pc.elapsed_time = pc.outputs.GetElapsedTime() >= 0 - ? SongTime::FromS(pc.outputs.GetElapsedTime()) + pc.elapsed_time = !pc.outputs.GetElapsedTime().IsNegative() + ? SongTime(pc.outputs.GetElapsedTime()) : elapsed_time; pc.CommandFinished(); |