mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
avidemux: Don't forget unmapping and unreffing buffer
This commit is contained in:
parent
1947587784
commit
89a3dc2ecd
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue