Commit 37d63c77 authored by conrad's avatar conrad

fixed init bug for oggz_read_input :)


git-svn-id: http://svn.annodex.net/liboggz/trunk@376 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent f618021a
......@@ -342,6 +342,7 @@ oggz_read (OGGZ * oggz, long n)
cb_ret = oggz_read_sync (oggz);
/* If there's nothing to read yet, don't flag an error */
if (reader->current_unit == 0 && cb_ret == -404) cb_ret = 0;
while (cb_ret == 0 && bytes_read > 0 && remaining > 0) {
......@@ -386,6 +387,9 @@ oggz_read_input (OGGZ * oggz, unsigned char * buf, long n)
cb_ret = oggz_read_sync (oggz);
/* If there's nothing to read yet, don't flag an error */
if (reader->current_unit == 0 && cb_ret == -404) cb_ret = 0;
while (cb_ret == 0 && /* !oggz->eos && */ remaining > 0) {
bytes = MIN (remaining, 4096);
buffer = ogg_sync_buffer (&reader->ogg_sync, bytes);
......
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