aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerThread.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/PlayerThread.cxx')
-rw-r--r--src/PlayerThread.cxx4
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();