[xiph-commits] r2886 - liboggz/trunk/src/liboggz

conrad at svn.annodex.net conrad at svn.annodex.net
Mon Jun 11 05:07:30 PDT 2007


Author: conrad
Date: 2007-06-11 05:07:30 -0700 (Mon, 11 Jun 2007)
New Revision: 2886

Modified:
   liboggz/trunk/src/liboggz/oggz_read.c
Log:
record delivered_non_b_o_s during reading; fixes oggz_get_bos() when reading


Modified: liboggz/trunk/src/liboggz/oggz_read.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz_read.c	2007-06-11 11:29:12 UTC (rev 2885)
+++ liboggz/trunk/src/liboggz/oggz_read.c	2007-06-11 12:07:30 UTC (rev 2886)
@@ -355,6 +355,12 @@
             cb_ret =
               reader->read_packet (oggz, op, serialno, reader->read_user_data);
           }
+
+          /* Mark this stream as having delivered a non b_o_s packet if so.
+           * In the case where there is no packet reading callback, this is
+           * also valid as the page reading callback has already been called.
+           */
+          if (!op->b_o_s) stream->delivered_non_b_o_s = 1;
         }
         else
           break;



More information about the commits mailing list