aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DecoderAPI.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-28 06:54:19 +0200
committerMax Kellermann <max@duempel.org>2014-08-28 13:03:18 +0200
commit6ad933982f68f5fcbd1b3179bf5fed26f63aa792 (patch)
treef0aee7be7dd2caba5a795602bf519739ed6cefc0 /src/decoder/DecoderAPI.cxx
parent854258f37626d40271a821d4835e9cfb946c8ad8 (diff)
downloadmpd-6ad933982f68f5fcbd1b3179bf5fed26f63aa792.tar.gz
mpd-6ad933982f68f5fcbd1b3179bf5fed26f63aa792.tar.xz
mpd-6ad933982f68f5fcbd1b3179bf5fed26f63aa792.zip
DetachedSong: use std::chrono::duration for start_ms and end_ms
Diffstat (limited to '')
-rw-r--r--src/decoder/DecoderAPI.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/DecoderAPI.cxx b/src/decoder/DecoderAPI.cxx
index 939434f83..83acb8a89 100644
--- a/src/decoder/DecoderAPI.cxx
+++ b/src/decoder/DecoderAPI.cxx
@@ -521,7 +521,7 @@ decoder_data(Decoder &decoder,
const auto dest =
chunk->Write(dc.out_audio_format,
decoder.timestamp -
- dc.song->GetStartMS() / 1000.0,
+ dc.song->GetStartTime().ToDoubleS(),
kbit_rate);
if (dest.IsNull()) {
/* the chunk is full, flush it */