avidemux: Don't forget unmapping and unreffing buffer

This commit is contained in:
Sebastian Dröge 2013-07-28 17:32:27 +02:00
parent 1947587784
commit 89a3dc2ecd

View file

@ -3758,6 +3758,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
sub = NULL; sub = NULL;
break; break;
case GST_RIFF_LIST_INFO: case GST_RIFF_LIST_INFO:
gst_buffer_unmap (sub, &map);
gst_buffer_resize (sub, 4, -1); gst_buffer_resize (sub, 4, -1);
gst_riff_parse_info (element, sub, &tags); gst_riff_parse_info (element, sub, &tags);
if (tags) { if (tags) {
@ -3769,6 +3770,8 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
} }
} }
tags = NULL; tags = NULL;
gst_buffer_unref (sub);
sub = NULL;
break; break;
default: default:
GST_WARNING_OBJECT (avi, GST_WARNING_OBJECT (avi,