aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/OggUtil.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-08 01:01:40 +0100
committerMax Kellermann <max@duempel.org>2013-01-08 01:08:01 +0100
commit9fb5aad1576920dc17481591e737b74b2f4ab12f (patch)
tree397843fd6ae94588420775ccb697a22fc41a5b28 /src/decoder/OggUtil.hxx
parenta6301d45f4a347e068414e6075be2e5f87eef948 (diff)
downloadmpd-9fb5aad1576920dc17481591e737b74b2f4ab12f.tar.gz
mpd-9fb5aad1576920dc17481591e737b74b2f4ab12f.tar.xz
mpd-9fb5aad1576920dc17481591e737b74b2f4ab12f.zip
decoder/OggUtil: add OggExpectFirstPage() and OggExpectPageIn()
Diffstat (limited to '')
-rw-r--r--src/decoder/OggUtil.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/decoder/OggUtil.hxx b/src/decoder/OggUtil.hxx
index c0be21faa..0ef4a0fa2 100644
--- a/src/decoder/OggUtil.hxx
+++ b/src/decoder/OggUtil.hxx
@@ -48,4 +48,24 @@ bool
OggExpectPage(ogg_sync_state &oy, ogg_page &page,
decoder *decoder, input_stream *input_stream);
+/**
+ * Combines OggExpectPage(), ogg_stream_init() and
+ * ogg_stream_pagein().
+ *
+ * @return true if the stream was initialized and the first page was
+ * delivered to it
+ */
+bool
+OggExpectFirstPage(ogg_sync_state &oy, ogg_stream_state &os,
+ decoder *decoder, input_stream *is);
+
+/**
+ * Combines OggExpectPage() and ogg_stream_pagein().
+ *
+ * @return true if a page was delivered to the stream
+ */
+bool
+OggExpectPageIn(ogg_sync_state &oy, ogg_stream_state &os,
+ decoder *decoder, input_stream *is);
+
#endif