DecoderControl: use std::chrono::duration for Seek()

This commit is contained in:
Max Kellermann
2014-08-27 18:38:41 +02:00
parent 58e6f660f3
commit ba6ba7d4be
5 changed files with 10 additions and 10 deletions

View File

@@ -567,7 +567,7 @@ Player::SeekDecoder()
if (where < 0.0)
where = 0.0;
if (!dc.Seek(where + start_ms / 1000.0)) {
if (!dc.Seek(SongTime::FromS(where) + SongTime::FromMS(start_ms))) {
/* decoder failure */
player_command_finished(pc);
return false;