From bb472206dee0adcff09b2efccfb5795101b45705 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 19 Aug 2014 22:29:52 +0200 Subject: InputStream: move typedef offset_type to Offset.hxx Reduce header dependencies. --- src/decoder/plugins/OpusDecoderPlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder/plugins/OpusDecoderPlugin.cxx') diff --git a/src/decoder/plugins/OpusDecoderPlugin.cxx b/src/decoder/plugins/OpusDecoderPlugin.cxx index 2ea8e0497..d41c212f9 100644 --- a/src/decoder/plugins/OpusDecoderPlugin.cxx +++ b/src/decoder/plugins/OpusDecoderPlugin.cxx @@ -339,8 +339,8 @@ MPDOpusDecoder::Seek(OggSyncState &oy, double where_s) /* interpolate the file offset where we expect to find the given granule position */ /* TODO: implement binary search */ - InputStream::offset_type offset(where_granulepos * input_stream.GetSize() - / eos_granulepos); + offset_type offset(where_granulepos * input_stream.GetSize() + / eos_granulepos); if (!OggSeekPageAtOffset(oy, os, input_stream, offset)) return false; -- cgit v1.2.3