summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Moffitt <jack@xiph.org>2000-09-28 05:01:56 +0000
committerJack Moffitt <jack@xiph.org>2000-09-28 05:01:56 +0000
commit38de061e69a5e71cf48d15ed8e680f6d751a219e (patch)
tree1ea9915fc46bdb6fb7f6afb415631776e0439f78
parent768a677a97e97e96451027e0a9b91ee628c37d81 (diff)
downloadogg-git-38de061e69a5e71cf48d15ed8e680f6d751a219e.tar.gz
Where was ogg_sync_destroy... silly xiphmont :)
svn path=/trunk/ogg/; revision=703
-rw-r--r--include/ogg/ogg.h2
-rw-r--r--src/framing.c10
2 files changed, 10 insertions, 2 deletions
diff --git a/include/ogg/ogg.h b/include/ogg/ogg.h
index 3fd44d8..bfc6a5f 100644
--- a/include/ogg/ogg.h
+++ b/include/ogg/ogg.h
@@ -120,8 +120,8 @@ extern int ogg_stream_flush(ogg_stream_state *os, ogg_page *og);
extern int ogg_sync_init(ogg_sync_state *oy);
extern int ogg_sync_clear(ogg_sync_state *oy);
-extern int ogg_sync_destroy(ogg_sync_state *oy);
extern int ogg_sync_reset(ogg_sync_state *oy);
+extern int ogg_sync_destroy(ogg_sync_state *oy);
extern char *ogg_sync_buffer(ogg_sync_state *oy, long size);
extern int ogg_sync_wrote(ogg_sync_state *oy, long bytes);
diff --git a/src/framing.c b/src/framing.c
index 55caa59..c0dc7e4 100644
--- a/src/framing.c
+++ b/src/framing.c
@@ -13,7 +13,7 @@
function: code raw [Vorbis] packets into framed OggSquish stream and
decode Ogg streams back into raw packets
- last mod: $Id: framing.c,v 1.3 2000/09/26 19:29:22 jack Exp $
+ last mod: $Id: framing.c,v 1.4 2000/09/28 05:01:56 jack Exp $
note: The CRC code is directly derived from public domain code by
Ross Williams (ross@guest.adelaide.edu.au). See docs/framing.html
@@ -411,6 +411,14 @@ int ogg_sync_clear(ogg_sync_state *oy){
return(0);
}
+int ogg_sync_destroy(ogg_sync_state *oy){
+ if(oy){
+ ogg_sync_clear(oy);
+ free(oy);
+ }
+ return(0);
+}
+
char *ogg_sync_buffer(ogg_sync_state *oy, long size){
/* first, clear out any space that has been previously returned */