Commit 047dea0d authored by conrad's avatar conrad

fixed bug introduced with callback stopping, whereby inital read was not

checked properly hence all packets were ignored.


git-svn-id: http://svn.annodex.net/liboggz/trunk@374 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent ad102ab5
......@@ -342,6 +342,8 @@ oggz_read (OGGZ * oggz, long n)
cb_ret = oggz_read_sync (oggz);
if (reader->current_unit == 0 && cb_ret == -404) cb_ret = 0;
while (cb_ret == 0 && bytes_read > 0 && 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