Commit 0494591f authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Sebastian Dröge

h265parse: fix caps leak in renegotiation

parent e33ac574
......@@ -341,7 +341,6 @@ gst_h265_parse_negotiate (GstH265Parse * h265parse, gint in_format,
/* fixate to avoid ambiguity with lists when parsing */
caps = gst_caps_fixate (caps);
gst_h265_parse_format_from_caps (caps, &format, &align);
gst_caps_unref (caps);
}
/* default */
......@@ -358,6 +357,9 @@ gst_h265_parse_negotiate (GstH265Parse * h265parse, gint in_format,
h265parse->align = align;
h265parse->transform = (in_format != h265parse->format);
if (caps)
gst_caps_unref (caps);
}
static GstBuffer *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment