MusicChunk: use SignedSongTime for the time stamp

This commit is contained in:
Max Kellermann
2014-08-29 13:15:33 +02:00
parent 147d301f10
commit 9d3a85d434
5 changed files with 12 additions and 10 deletions

View File

@@ -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 */