h265parse: Fix buffer memory leak.

While setting caps, codec_data buffer is mapped, but not being unmapped
leading to memory leaks.

https://bugzilla.gnome.org/show_bug.cgi?id=761070
This commit is contained in:
Vineeth TM 2016-01-25 12:05:12 +09:00 committed by Thiago Santos
parent e294866bd7
commit 6a35a4018e

View file

@ -2032,7 +2032,7 @@ gst_h265_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
off = nalu.offset + nalu.size;
}
}
gst_buffer_unmap (codec_data, &map);
} else {
GST_DEBUG_OBJECT (h265parse, "have bytestream h265");
/* nothing to pre-process */