summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-08-01 17:55:20 +0000
committerGregory Maxwell <greg@xiph.org>2011-08-01 17:55:20 +0000
commit237a3081dcafd11d5077d183395e63c515bf8dee (patch)
tree5fbf9e81152302bef7c7427bbcb17262ade0c758 /src
parent0664bdc1dd5e554db16cfc183b350a6c07a6f5ef (diff)
downloadogg-git-237a3081dcafd11d5077d183395e63c515bf8dee.tar.gz
Add ogg_stream_flush_fill to compliment ogg_stream_pageout_fill because ogg_stream_flush will produce multiple pages when >4096 bytes and >4 packets are available.
svn path=/trunk/ogg/; revision=18044
Diffstat (limited to 'src')
-rw-r--r--src/framing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/framing.c b/src/framing.c
index 3fffa1b..493f1e8 100644
--- a/src/framing.c
+++ b/src/framing.c
@@ -518,6 +518,14 @@ int ogg_stream_flush(ogg_stream_state *os,ogg_page *og){
return ogg_stream_flush_i(os,og,1,4096);
}
+/* Like the above, but an argument is provided to adjust the nominal
+page size for applications which are smart enough to provide their
+own delay based flushing */
+
+int ogg_stream_flush_fill(ogg_stream_state *os,ogg_page *og, int nfill){
+ return ogg_stream_flush_i(os,og,1,nfill);
+}
+
/* This constructs pages from buffered packet segments. The pointers
returned are to static buffers; do not free. The returned buffers are
good only until the next call (using the same ogg_stream_state) */