player/Control: convert total_play_time to FloatDuration

This commit is contained in:
Max Kellermann
2018-09-21 20:50:15 +02:00
parent 90f4e97751
commit 1a2012a97e
3 changed files with 4 additions and 4 deletions

View File

@@ -766,7 +766,7 @@ PlayerControl::PlayChunk(DetachedSong &song, MusicChunkPtr chunk,
const double chunk_length(chunk->length);
outputs.Play(std::move(chunk));
total_play_time += chunk_length / format.GetTimeToSize();
total_play_time += FloatDuration(chunk_length / format.GetTimeToSize());
}
inline bool