summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2001-05-24 01:04:36 +0000
committerMonty <xiphmont@xiph.org>2001-05-24 01:04:36 +0000
commite83f70b5eaad0f738d5185ba07d436801db2cbcf (patch)
tree20708c312ec45423af771bbc6e6dbd2f9224a3ab /include
parent899f8604d51cf4287a45af7b4ec23ab09342947f (diff)
downloadogg-git-e83f70b5eaad0f738d5185ba07d436801db2cbcf.tar.gz
Minor API additions; none break compatability.
added ogg_stream_packetpeek; returns the next packet from the stream stste without removing it from the stream. ogg_stream_packetout can now be passed a NULL packet pointer; in this case it removes the packet at the head of the stream and drops it on the floor. Monty svn path=/trunk/ogg/; revision=1453
Diffstat (limited to 'include')
-rw-r--r--include/ogg/ogg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ogg/ogg.h b/include/ogg/ogg.h
index a368c53..b42e4fc 100644
--- a/include/ogg/ogg.h
+++ b/include/ogg/ogg.h
@@ -11,7 +11,7 @@
********************************************************************
function: toplevel libogg include
- last mod: $Id: ogg.h,v 1.10 2001/02/26 03:49:58 xiphmont Exp $
+ last mod: $Id: ogg.h,v 1.11 2001/05/24 01:04:36 xiphmont Exp $
********************************************************************/
#ifndef _OGG_H
@@ -145,6 +145,7 @@ extern long ogg_sync_pageseek(ogg_sync_state *oy,ogg_page *og);
extern int ogg_sync_pageout(ogg_sync_state *oy, ogg_page *og);
extern int ogg_stream_pagein(ogg_stream_state *os, ogg_page *og);
extern int ogg_stream_packetout(ogg_stream_state *os,ogg_packet *op);
+extern int ogg_stream_packetpeek(ogg_stream_state *os,ogg_packet *op);
/* Ogg BITSTREAM PRIMITIVES: general ***************************/