summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2017-05-12 10:01:10 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-05-15 19:38:23 +0300
commit922e39c2a3c381e15c79047c764ad92667005402 (patch)
tree88ff53df88bc1c25899aaddd3a517a697157421c
parent0494591f852b176fd6f5c76437cdc55b956308bb (diff)
downloadgstreamer-plugins-bad-922e39c2a3c381e15c79047c764ad92667005402.tar.gz
h264parse: fix caps leak in renegotiation
-rw-r--r--gst/videoparsers/gsth264parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index e0dc12353..10543eafc 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -395,7 +395,6 @@ gst_h264_parse_negotiate (GstH264Parse * h264parse, gint in_format,
/* fixate to avoid ambiguity with lists when parsing */
caps = gst_caps_fixate (caps);
gst_h264_parse_format_from_caps (caps, &format, &align);
- gst_caps_unref (caps);
}
/* default */
@@ -413,6 +412,9 @@ gst_h264_parse_negotiate (GstH264Parse * h264parse, gint in_format,
h264parse->transform = in_format != h264parse->format ||
align == GST_H264_PARSE_ALIGN_AU;
+
+ if (caps)
+ gst_caps_unref (caps);
}
static GstBuffer *