[xiph-commits] r17264 - branches/lowmem-branch/Tremolo
robin at svn.xiph.org
robin at svn.xiph.org
Tue Jun 1 13:20:25 PDT 2010
Author: robin
Date: 2010-06-01 13:20:25 -0700 (Tue, 01 Jun 2010)
New Revision: 17264
Modified:
branches/lowmem-branch/Tremolo/framing.c
Log:
Add framing.c fix from Stuart Fisher. Don't link ogg_page's with no body
into the stream chain.
Modified: branches/lowmem-branch/Tremolo/framing.c
===================================================================
--- branches/lowmem-branch/Tremolo/framing.c 2010-06-01 19:23:05 UTC (rev 17263)
+++ branches/lowmem-branch/Tremolo/framing.c 2010-06-01 20:20:25 UTC (rev 17264)
@@ -988,11 +988,13 @@
}
/* add to fifos */
- if(!os->body_tail){
- os->body_tail=og->body;
- os->body_head=ogg_buffer_walk(og->body);
- }else{
- os->body_head=ogg_buffer_cat(os->body_head,og->body);
+ if(og->body){
+ if(!os->body_tail){
+ os->body_tail=og->body;
+ os->body_head=ogg_buffer_walk(og->body);
+ }else{
+ os->body_head=ogg_buffer_cat(os->body_head,og->body);
+ }
}
if(!os->header_tail){
os->header_tail=og->header;
More information about the commits
mailing list