Skip to content

Commit

Permalink
Add chunk size to track header
Browse files Browse the repository at this point in the history
  • Loading branch information
Elleo committed Jul 7, 2009
1 parent 92523d6 commit 2eb9fe6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gstmusicxml2midi.c
Expand Up @@ -315,8 +315,11 @@ process_part(GstMusicXml2Midi * filter, xmlNode * node)
child_node = child_node->next;
}

note_buf = gst_buffer_merge(note_buf, end_buf);

guint32 *header = (guint32 *) GST_BUFFER_DATA(buf);
header[1] = (guint32) GST_BUFFER_SIZE(buf) - 8;
buf = gst_buffer_merge(buf, note_buf);
buf = gst_buffer_merge(buf, end_buf);

return buf;
}
Expand Down

0 comments on commit 2eb9fe6

Please sign in to comment.