aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/OggUtil.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/OggUtil.hxx')
-rw-r--r--src/decoder/OggUtil.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/decoder/OggUtil.hxx b/src/decoder/OggUtil.hxx
index 0ef4a0fa2..324797815 100644
--- a/src/decoder/OggUtil.hxx
+++ b/src/decoder/OggUtil.hxx
@@ -68,4 +68,20 @@ bool
OggExpectPageIn(ogg_sync_state &oy, ogg_stream_state &os,
decoder *decoder, input_stream *is);
+/**
+ * Like OggExpectPage(), but allow skipping garbage (after seeking).
+ */
+bool
+OggExpectPageSeek(ogg_sync_state &oy, ogg_page &page,
+ decoder *decoder, input_stream *input_stream);
+
+/**
+ * Combines OggExpectPageSeek() and ogg_stream_pagein().
+ *
+ * @return true if a page was delivered to the stream
+ */
+bool
+OggExpectPageSeekIn(ogg_sync_state &oy, ogg_stream_state &os,
+ decoder *decoder, input_stream *is);
+
#endif