From 23d4044e2cc80bbcd992b50c5c14789b2bf8765d Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 23 Aug 2013 11:17:45 +0200 Subject: [PATCH] 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 --- gst/avi/gstavimux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index 96aa7a9..c3b8772 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -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); } -- 2.7.4