Commit 652468d3 authored by conrad's avatar conrad

oggz_write: unset writing state when returning a delayed callback return value


git-svn-id: http://svn.annodex.net/liboggz/trunk@2960 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 8f5836df
......@@ -651,6 +651,7 @@ oggz_write_output (OGGZ * oggz, unsigned char * buf, long n)
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 @@ oggz_write (OGGZ * oggz, long n)
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment