mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
e00b8f0a4a
commit
23d4044e2c
1 changed files with 1 additions and 1 deletions
|
@ -1311,7 +1311,7 @@ gst_avi_mux_riff_get_avi_header (GstAviMux * avimux)
|
||||||
if (audpad->auds_codec_data) {
|
if (audpad->auds_codec_data) {
|
||||||
gst_buffer_map (audpad->auds_codec_data, &map, GST_MAP_READ);
|
gst_buffer_map (audpad->auds_codec_data, &map, GST_MAP_READ);
|
||||||
hdl &= gst_byte_writer_put_data (&bw, map.data, map.size);
|
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);
|
gst_avi_mux_end_chunk (&bw, strf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue