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

conrad at svn.annodex.net conrad at svn.annodex.net
Sat Jun 16 22:30:15 PDT 2007


Author: conrad
Date: 2007-06-16 22:30:14 -0700 (Sat, 16 Jun 2007)
New Revision: 2960

Modified:
   liboggz/trunk/src/liboggz/oggz_write.c
Log:
oggz_write: unset writing state when returning a delayed callback return value


Modified: liboggz/trunk/src/liboggz/oggz_write.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz_write.c	2007-06-17 03:14:36 UTC (rev 2959)
+++ liboggz/trunk/src/liboggz/oggz_write.c	2007-06-17 05:30:14 UTC (rev 2960)
@@ -651,6 +651,7 @@
 
   if ((cb_ret = oggz->cb_next) != OGGZ_CONTINUE) {
     oggz->cb_next = 0;
+    writer->writing = 0;
     return oggz_map_return_value_to_error (cb_ret);
   }
 
@@ -720,6 +721,7 @@
 
   if ((cb_ret = oggz->cb_next) != OGGZ_CONTINUE) {
     oggz->cb_next = 0;
+    writer->writing = 0;
     if (cb_ret == OGGZ_WRITE_EMPTY) cb_ret = 0;
     return oggz_map_return_value_to_error (cb_ret);
   }



More information about the commits mailing list