From 9bc4dfd004316f6ff4d6552c9c292537e608b7a0 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Mon, 25 Jan 2016 12:05:12 +0900 Subject: 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 --- gst/videoparsers/gsth265parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index d6496816e..bd7ced622 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -2023,7 +2023,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 */ -- cgit v1.2.1