[xiph-cvs] cvs commit: vorbis-tools/oggenc encode.c
Michael Smith
msmith at xiph.org
Fri Sep 28 00:54:40 PDT 2001
msmith 01/09/28 00:54:39
Modified: oggenc encode.c
Log:
Make sure we write _everything_ we wanted to write, not just that we wrote
something. Probably makes no difference in reality, but it's better to be
safe.
Revision Changes Path
1.11 +2 -2 vorbis-tools/oggenc/encode.c
Index: encode.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/encode.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- encode.c 2001/09/15 11:56:10 1.10
+++ encode.c 2001/09/28 07:54:39 1.11
@@ -102,7 +102,7 @@
{
if(!result) break;
ret = oe_write_page(&og, opt->out);
- if(!ret)
+ if(ret != og.header_len + og.body_len)
{
opt->error("Failed writing header to output stream\n");
ret = 1;
@@ -167,7 +167,7 @@
if(!result) break;
ret = oe_write_page(&og, opt->out);
- if(!ret)
+ if(ret != og.header_len + og.body_len)
{
opt->error("Failed writing data to output stream\n");
ret = 1;
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list