X-Git-Url: http://git.code-monkey.de/?p=ruby-vorbistagger.git;a=blobdiff_plain;f=ext%2Fvcedit.c;h=75bf80db99aac4b3205172cb5c14b520b4d9193a;hp=70eae0591af0e91ac5dee35e9858fb3aaa7e80cf;hb=2a86264bbe06e4e24e86170ece78e0ed8bf24e32;hpb=e71087631ea69d4785be8da4a962d540bd25bcab diff --git a/ext/vcedit.c b/ext/vcedit.c index 70eae05..75bf80d 100644 --- a/ext/vcedit.c +++ b/ext/vcedit.c @@ -512,7 +512,7 @@ vcedit_write (vcedit_state *state) /* clear it, because not all paths to here do */ state->eosin = 0; - while (!state->eosin) { /* We reached eos, not eof */ + do { /* We copy the rest of the stream (other logical streams) * through, a page at a time. */ @@ -537,7 +537,7 @@ vcedit_write (vcedit_state *state) ogg_sync_wrote (&state->oy, bytes); state->eosin = !bytes && feof (state->in); - } + } while (!state->eosin); fclose (out); fclose (state->in);