From: Sebastian Dröge Date: Sun, 28 Jul 2013 15:32:27 +0000 (+0200) Subject: avidemux: Don't forget unmapping and unreffing buffer X-Git-Tag: 1.19.3~509^2~5529 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89a3dc2ecdd6d26e228ad56cba863d37d35127c1;p=platform%2Fupstream%2Fgstreamer.git avidemux: Don't forget unmapping and unreffing buffer --- diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 9cf588779a..43a96a86a4 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -3758,6 +3758,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi) sub = NULL; break; case GST_RIFF_LIST_INFO: + gst_buffer_unmap (sub, &map); gst_buffer_resize (sub, 4, -1); gst_riff_parse_info (element, sub, &tags); if (tags) { @@ -3769,6 +3770,8 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi) } } tags = NULL; + gst_buffer_unref (sub); + sub = NULL; break; default: GST_WARNING_OBJECT (avi,