diff options
author | Monty <xiphmont@xiph.org> | 2001-05-24 01:04:36 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2001-05-24 01:04:36 +0000 |
commit | ac2d51f28d24b6623bc82aad4f0aa7439835c0c3 (patch) | |
tree | 20708c312ec45423af771bbc6e6dbd2f9224a3ab /include | |
parent | 6223a4c45978ad61632425a95bdbb233c0ac247d (diff) | |
download | ogg-ac2d51f28d24b6623bc82aad4f0aa7439835c0c3.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
git-svn-id: http://svn.xiph.org/trunk/ogg@1453 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'include')
-rw-r--r-- | include/ogg/ogg.h | 3 |
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 ***************************/ |