gst/avi/gstavimux.c: Use new tagsetter api to flush tags.

Original commit message from CVS:
* gst/avi/gstavimux.c:
Use new tagsetter api to flush tags.
This commit is contained in:
Stefan Kost 2008-12-16 14:22:51 +00:00
parent 71dec960dd
commit 9e72ba8464
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-12-16 Stefan Kost <ensonic@users.sf.net>
* gst/avi/gstavimux.c:
Use new tagsetter api to flush tags.
2008-12-16 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* tests/check/elements/deinterleave.c: (deinterleave_suite):

View file

@ -388,6 +388,9 @@ gst_avi_mux_reset (GstAviMux * avimux)
/* state info */
avimux->write_header = TRUE;
/* tags */
gst_tag_setter_flush (GST_TAG_SETTER (avimux));
}
static void
@ -1225,7 +1228,6 @@ gst_avi_mux_riff_get_avi_header (GstAviMux * avimux)
/* 12 bytes is needed for data header */
GST_BUFFER_SIZE (buffer) -= 12;
gst_tag_list_foreach (tags, gst_avi_mux_write_tag, &data);
/* do not free tags here, as it refers to the tag snapshot */
GST_BUFFER_SIZE (buffer) += 12;
buffdata = GST_BUFFER_DATA (buffer) + highmark;