diff options
author | Max Kellermann <max@duempel.org> | 2013-01-08 01:01:40 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-08 01:08:01 +0100 |
commit | 9fb5aad1576920dc17481591e737b74b2f4ab12f (patch) | |
tree | 397843fd6ae94588420775ccb697a22fc41a5b28 /src/decoder/OggUtil.hxx | |
parent | a6301d45f4a347e068414e6075be2e5f87eef948 (diff) | |
download | mpd-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.hxx | 20 |
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 |