Commit 36ccab44 authored by conrad's avatar conrad

don't return 0 on EMPTY from oggz_read_input (ie. don't report EOF unless

getting data from an IO source)


git-svn-id: http://svn.annodex.net/liboggz/trunk@539 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 915fe68a
......@@ -454,7 +454,7 @@ oggz_read_input (OGGZ * oggz, unsigned char * buf, long n)
/* Don't return 0 unless it's actually an EOF condition */
if (nread == 0) {
switch (cb_ret) {
case OGGZ_CONTINUE: case OGGZ_READ_EMPTY: return 0; break;
case OGGZ_CONTINUE: /*case OGGZ_READ_EMPTY:*/ return 0; break;
case OGGZ_STOP_ERR: return OGGZ_ERR_READ_STOP_ERR; break;
case OGGZ_STOP_OK: default: return OGGZ_ERR_READ_STOP_OK; break;
}
......
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