[xiph-commits] r12206 - experimental/giles/mng

giles at svn.xiph.org giles at svn.xiph.org
Mon Dec 11 14:30:41 PST 2006


Author: giles
Date: 2006-12-11 14:30:41 -0800 (Mon, 11 Dec 2006)
New Revision: 12206

Modified:
   experimental/giles/mng/mng.c
Log:
Set eos on the MEND packet, since we won't normally see eof when
we've read chunk data.


Modified: experimental/giles/mng/mng.c
===================================================================
--- experimental/giles/mng/mng.c	2006-12-11 21:11:32 UTC (rev 12205)
+++ experimental/giles/mng/mng.c	2006-12-11 22:30:41 UTC (rev 12206)
@@ -154,6 +154,7 @@
 	op.bytes = bytes;
 	op.b_o_s = 0;
 	op.e_o_s = feof(in); /* set eos flag on the last packet */
+	if (!memcmp(buffer, "MEND", 4)) op.e_o_s = 1;
 	op.granulepos = -1;
 	op.packetno = packetno++;
 	ogg_stream_packetin(&os, &op);



More information about the commits mailing list