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

Ralph Giles giles at xiph.org
Fri Mar 12 19:27:30 PST 2004



giles       04/03/12 22:27:30

  Modified:    examples splayer.c
  Log:
  Use the queue_page() helper in the main loop instead of duplicating the
  code.

Revision  Changes    Path
1.10      +2 -4      theora/examples/splayer.c

Index: splayer.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/splayer.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- a/splayer.c	13 Mar 2004 03:25:25 -0000	1.9
+++ b/splayer.c	13 Mar 2004 03:27:29 -0000	1.10
@@ -1058,10 +1058,8 @@
     /* HACK: look for more audio data */
     audiobuf_ready=0;
 
-    if (ogg_sync_pageout(&oy,&og)>0){
-      if(theora_p)ogg_stream_pagein(&to,&og);
-      if(vorbis_p)ogg_stream_pagein(&vo,&og);
-    }
+    if (ogg_sync_pageout(&oy,&og)>0)
+      queue_page(&og);
 
   }
 

<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