From 9d3a85d434892055e5a640338a002504a26eabb0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 13:15:33 +0200 Subject: MusicChunk: use SignedSongTime for the time stamp --- src/decoder/DecoderAPI.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder') 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 */ -- cgit v1.2.3