[xiph-cvs] cvs commit: vorbis/examples decoder_example.c encoder_example.c

Michael Smith msmith at xiph.org
Sat Jan 20 06:06:29 PST 2001



msmith      01/01/20 06:06:29

  Modified:    examples decoder_example.c encoder_example.c
  Log:
  We never called vorbis_comment_clear() in either of these examples. That's bad.
  Do so.

Revision  Changes    Path
1.16      +2 -1      vorbis/examples/decoder_example.c

Index: decoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/examples/decoder_example.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- decoder_example.c	2000/12/21 21:04:37	1.15
+++ decoder_example.c	2001/01/20 14:06:28	1.16
@@ -12,7 +12,7 @@
  ********************************************************************
 
  function: simple example decoder
- last mod: $Id: decoder_example.c,v 1.15 2000/12/21 21:04:37 xiphmont Exp $
+ last mod: $Id: decoder_example.c,v 1.16 2001/01/20 14:06:28 msmith Exp $
 
  ********************************************************************/
 
@@ -291,6 +291,7 @@
     
     vorbis_block_clear(&vb);
     vorbis_dsp_clear(&vd);
+	vorbis_comment_clear(&vc);
     vorbis_info_clear(&vi);  /* must be called last */
   }
 

1.18      +2 -1      vorbis/examples/encoder_example.c

Index: encoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/examples/encoder_example.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- encoder_example.c	2000/12/21 21:04:37	1.17
+++ encoder_example.c	2001/01/20 14:06:28	1.18
@@ -12,7 +12,7 @@
  ********************************************************************
 
  function: simple example encoder
- last mod: $Id: encoder_example.c,v 1.17 2000/12/21 21:04:37 xiphmont Exp $
+ last mod: $Id: encoder_example.c,v 1.18 2001/01/20 14:06:28 msmith Exp $
 
  ********************************************************************/
 
@@ -188,6 +188,7 @@
   ogg_stream_clear(&os);
   vorbis_block_clear(&vb);
   vorbis_dsp_clear(&vd);
+  vorbis_comment_clear(&vc);
   vorbis_info_clear(&vi);
   
   /* ogg_page and ogg_packet structs always point to storage in

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list