[xiph-commits] r16329 - trunk/vorbis/examples

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Thu Jul 23 18:53:20 PDT 2009


Author: xiphmont
Date: 2009-07-23 18:53:20 -0700 (Thu, 23 Jul 2009)
New Revision: 16329

Modified:
   trunk/vorbis/examples/seeking_example.c
Log:
Similarly check for error in seeking_example


Modified: trunk/vorbis/examples/seeking_example.c
===================================================================
--- trunk/vorbis/examples/seeking_example.c	2009-07-24 01:51:10 UTC (rev 16328)
+++ trunk/vorbis/examples/seeking_example.c	2009-07-24 01:53:20 UTC (rev 16329)
@@ -116,7 +116,10 @@
     i=0;
     while(i<pcmlength*2){
       int ret=ov_read(&ov,bigassbuffer+i,pcmlength*2-i,1,1,1,&dummy);
-      if(ret<0)continue;
+      if(ret<0){
+        fprintf(stderr,"Error reading file.\n");
+        exit(1);
+      }
       if(ret){
         i+=ret;
       }else{



More information about the commits mailing list