From ca252804c6bbba163fe00d660f47ca4856e4874e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 12:44:54 +0200 Subject: DecoderControl: use SignedSongTime for the song duration --- src/PlayerThread.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PlayerThread.cxx') diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index c4db25e98..b8d0b43da 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -450,7 +450,7 @@ Player::CheckDecoderStartup() return true; pc.Lock(); - pc.total_time = real_song_duration(*dc.song, dc.total_time); + pc.total_time = real_song_duration(*dc.song, dc.total_time.ToDoubleS()); pc.audio_format = dc.in_audio_format; pc.Unlock(); @@ -1001,7 +1001,7 @@ Player::Run() calculate how many chunks will be required for it */ cross_fade_chunks = - pc.cross_fade.Calculate(dc.total_time, + pc.cross_fade.Calculate(dc.total_time.ToDoubleS(), dc.replay_gain_db, dc.replay_gain_prev_db, dc.GetMixRampStart(), -- cgit v1.2.3