summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/OpusDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-09-21 19:37:56 +0200
committerMax Kellermann <max@musicpd.org>2018-09-21 20:42:34 +0200
commit90f4e97751a7ff2752d12f611cf779b7c8f5804a (patch)
tree971ca26f7502289fa46c62e95e2e7c4baf04a8cf /src/decoder/plugins/OpusDecoderPlugin.cxx
parentd1bcd98f79c35eff78188a47e7ac3c869f3df1dc (diff)
decoder/Client: use std::chrono::duration<double> instead of raw `double`
Diffstat (limited to 'src/decoder/plugins/OpusDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/OpusDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/OpusDecoderPlugin.cxx b/src/decoder/plugins/OpusDecoderPlugin.cxx
index ab6ed06f5..0404e4a40 100644
--- a/src/decoder/plugins/OpusDecoderPlugin.cxx
+++ b/src/decoder/plugins/OpusDecoderPlugin.cxx
@@ -243,7 +243,7 @@ MPDOpusDecoder::HandleAudio(const ogg_packet &packet)
throw cmd;
if (packet.granulepos > 0)
- client.SubmitTimestamp(double(packet.granulepos)
+ client.SubmitTimestamp(FloatDuration(packet.granulepos)
/ opus_sample_rate);
}
}