[xiph-cvs] cvs commit: theora/examples player_example.c

Monty xiphmont at xiph.org
Tue Sep 24 20:07:46 PDT 2002



xiphmont    02/09/24 23:07:46

  Modified:    examples player_example.c
  Log:
  Vorbis header parsing fix for player_example

Revision  Changes    Path
1.5       +2 -2      theora/examples/player_example.c

Index: player_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/player_example.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- player_example.c	25 Sep 2002 02:38:10 -0000	1.4
+++ player_example.c	25 Sep 2002 03:07:46 -0000	1.5
@@ -12,7 +12,7 @@
 
   function: example SDL player application; plays Ogg Theora files (with
             optional Vorbis audio second stream)
-  last mod: $Id: player_example.c,v 1.4 2002/09/25 02:38:10 xiphmont Exp $
+  last mod: $Id: player_example.c,v 1.5 2002/09/25 03:07:46 xiphmont Exp $
 
  ********************************************************************/
 
@@ -403,7 +403,7 @@
   }
   
   /* we're expecting more vorbis header packets. */
-  if(vorbis_p && vorbis_p<3){
+  while(vorbis_p && vorbis_p<3){
     int ret;
     while((ret=ogg_stream_packetout(&vo,&op))){
       if(ret<0){

<p><p>--- >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