diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2017-05-12 10:00:56 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-05-15 19:38:19 +0300 |
commit | 0494591f852b176fd6f5c76437cdc55b956308bb (patch) | |
tree | ae2d3fc7a142f26f4d68cd162dca73de149d19fc | |
parent | e33ac574d7d2dfdeba70f867b956da4af1e35182 (diff) | |
download | gstreamer-plugins-bad-0494591f852b176fd6f5c76437cdc55b956308bb.tar.gz |
h265parse: fix caps leak in renegotiation
-rw-r--r-- | gst/videoparsers/gsth265parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index f965a4b49..36cd8ec0a 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -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 * |