MultipleOutputs: use SignedSongTime for elapsed_time

This commit is contained in:
Max Kellermann
2014-08-29 13:13:08 +02:00
parent 75a89c5983
commit 147d301f10
3 changed files with 11 additions and 10 deletions

View File

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