aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-24 23:23:23 +0200
committerMax Kellermann <max@duempel.org>2013-10-24 23:23:23 +0200
commitb74bcf2274ca27cd2db00ffe94f2154ba889d281 (patch)
tree092385ef244b43253dd5d9de4183061b818c624b
parent645cb5833d3a4f1143bb75cea828f2bde41414a5 (diff)
downloadmpd-b74bcf2274ca27cd2db00ffe94f2154ba889d281.tar.gz
mpd-b74bcf2274ca27cd2db00ffe94f2154ba889d281.tar.xz
mpd-b74bcf2274ca27cd2db00ffe94f2154ba889d281.zip
decoder/opus: call ogg_stream_reset() in OggSeekPageAtOffset()
-rw-r--r--src/decoder/OggFind.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder/OggFind.cxx b/src/decoder/OggFind.cxx
index e737a3ffe..05d693122 100644
--- a/src/decoder/OggFind.cxx
+++ b/src/decoder/OggFind.cxx
@@ -44,6 +44,10 @@ OggSeekPageAtOffset(OggSyncState &oy, ogg_stream_state &os, InputStream &is,
{
oy.Reset();
+ /* reset the stream to clear any previous partial packet
+ data */
+ ogg_stream_reset(&os);
+
return is.LockSeek(offset, whence, IgnoreError()) &&
oy.ExpectPageSeekIn(os);
}