From bdc4ae2b86b3ab63053c52f35c0961f4d7fac6e2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2014 11:34:24 +0200 Subject: decoder/opus: remove redundant decoder_timestamp() call After seeking, the MPD core automatically refreshes the timestamp, and thus discards the value from decoder_timestamp(). --- src/decoder/plugins/OpusDecoderPlugin.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/decoder') diff --git a/src/decoder/plugins/OpusDecoderPlugin.cxx b/src/decoder/plugins/OpusDecoderPlugin.cxx index d41c212f9..f5a62e0d1 100644 --- a/src/decoder/plugins/OpusDecoderPlugin.cxx +++ b/src/decoder/plugins/OpusDecoderPlugin.cxx @@ -342,11 +342,7 @@ MPDOpusDecoder::Seek(OggSyncState &oy, double where_s) offset_type offset(where_granulepos * input_stream.GetSize() / eos_granulepos); - if (!OggSeekPageAtOffset(oy, os, input_stream, offset)) - return false; - - decoder_timestamp(decoder, where_s); - return true; + return OggSeekPageAtOffset(oy, os, input_stream, offset); } static void -- cgit v1.2.3