aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DecoderAPI.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/DecoderAPI.cxx')
-rw-r--r--src/decoder/DecoderAPI.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/DecoderAPI.cxx b/src/decoder/DecoderAPI.cxx
index bccd46b17..354fed9a3 100644
--- a/src/decoder/DecoderAPI.cxx
+++ b/src/decoder/DecoderAPI.cxx
@@ -512,8 +512,8 @@ decoder_data(Decoder &decoder,
const auto dest =
chunk->Write(dc.out_audio_format,
- decoder.timestamp -
- dc.song->GetStartTime().ToDoubleS(),
+ SongTime::FromS(decoder.timestamp) -
+ dc.song->GetStartTime(),
kbit_rate);
if (dest.IsNull()) {
/* the chunk is full, flush it */