summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2013-08-23 11:17:45 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-09-13 16:29:49 +0200
commite49c918fa3527405cf803bebc87e757993fc88e3 (patch)
tree82e7f726af222ab4b7600c00b2503622cff1fb52
parent4c27613d2d1370342950045a38de7ed934f2f7be (diff)
downloadgst-plugins-good-e49c918fa3527405cf803bebc87e757993fc88e3.tar.gz
gst-plugins-good-e49c918fa3527405cf803bebc87e757993fc88e3.tar.xz
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
-rw-r--r--gst/avi/gstavimux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index 273955598..54d74c4ca 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -1291,7 +1291,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);
}