avimux: unmap the correct buffer

The audio buffer was mapped so unmap it and not the video buffer

https://bugzilla.gnome.org/show_bug.cgi?id=706642
This commit is contained in:
Michael Olbrich 2013-08-23 11:17:45 +02:00 committed by Sebastian Dröge
parent e00b8f0a4a
commit 23d4044e2c

View file

@ -1311,7 +1311,7 @@ gst_avi_mux_riff_get_avi_header (GstAviMux * avimux)
if (audpad->auds_codec_data) {
gst_buffer_map (audpad->auds_codec_data, &map, GST_MAP_READ);
hdl &= gst_byte_writer_put_data (&bw, map.data, map.size);
gst_buffer_unmap (vidpad->vids_codec_data, &map);
gst_buffer_unmap (audpad->auds_codec_data, &map);
}
gst_avi_mux_end_chunk (&bw, strf);
}