From 3dd8276551a8095e90d53d7445f2127ea285e6a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 23 Sep 2020 10:58:43 +0200 Subject: [PATCH] codecs: h264: unref leaked caps Unref a leaked caps at set_latency(). Part-of: --- gst-libs/gst/codecs/gsth264decoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/codecs/gsth264decoder.c b/gst-libs/gst/codecs/gsth264decoder.c index 34a15fc..10e22aa 100644 --- a/gst-libs/gst/codecs/gsth264decoder.c +++ b/gst-libs/gst/codecs/gsth264decoder.c @@ -1906,6 +1906,7 @@ gst_h264_decoder_set_latency (GstH264Decoder * self, const GstH264SPS * sps, gst_structure_get_fraction (structure, "max-framerate", &fps_n, &fps_d); } } + gst_caps_unref (caps); /* if no fps or variable, then 25/1 */ if (fps_n == 0) { -- 2.7.4