aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/OpusDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:34:24 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:34:24 +0200
commitbdc4ae2b86b3ab63053c52f35c0961f4d7fac6e2 (patch)
tree6412d58eb9be3e7989ce4b8d4a5788a00a3ad547 /src/decoder/plugins/OpusDecoderPlugin.cxx
parent9ca9341384490b15f78f79d5f74de0d59e9c387e (diff)
downloadmpd-bdc4ae2b86b3ab63053c52f35c0961f4d7fac6e2.tar.gz
mpd-bdc4ae2b86b3ab63053c52f35c0961f4d7fac6e2.tar.xz
mpd-bdc4ae2b86b3ab63053c52f35c0961f4d7fac6e2.zip
decoder/opus: remove redundant decoder_timestamp() call
After seeking, the MPD core automatically refreshes the timestamp, and thus discards the value from decoder_timestamp().
Diffstat (limited to 'src/decoder/plugins/OpusDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/OpusDecoderPlugin.cxx6
1 files changed, 1 insertions, 5 deletions
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