summaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-29 13:15:33 +0200
committerMax Kellermann <max@duempel.org>2014-08-29 13:20:58 +0200
commit9d3a85d434892055e5a640338a002504a26eabb0 (patch)
tree0d2c458f0f6719c266d36d0792f4cc6ad54df17a /src/decoder
parent147d301f102512b1a64c85e3896bdd466fb634af (diff)
MusicChunk: use SignedSongTime for the time stamp
Diffstat (limited to 'src/decoder')
-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 */