[xiph-commits] r3020 - liboggplay/trunk/src/liboggplay

shans at svn.annodex.net shans at svn.annodex.net
Thu Jun 21 05:02:59 PDT 2007


Author: shans
Date: 2007-06-21 05:02:59 -0700 (Thu, 21 Jun 2007)
New Revision: 3020

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_callback_info.c
Log:
Don't callback when there's no data at all!



Modified: liboggplay/trunk/src/liboggplay/oggplay_callback_info.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_callback_info.c	2007-06-21 10:45:59 UTC (rev 3019)
+++ liboggplay/trunk/src/liboggplay/oggplay_callback_info.c	2007-06-21 12:02:59 UTC (rev 3020)
@@ -49,7 +49,7 @@
   int         added_required_record   = 0;
   ogg_int64_t diff;
   ogg_int64_t latest_first_record     = 0x0LL;
-  
+ 
   /*
    * allocate the structure for return to the user
    */
@@ -210,6 +210,10 @@
 
   }
 
+  if (tcount == 0) {
+    (*info) = NULL;
+  }
+
   return me->num_tracks;
   
 }



More information about the commits mailing list