codecs: h264: unref leaked caps
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 23 Sep 2020 08:58:43 +0000 (10:58 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 23 Sep 2020 09:52:47 +0000 (11:52 +0200)
Unref a leaked caps at set_latency().

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1590>

gst-libs/gst/codecs/gsth264decoder.c

index 34a15fc..10e22aa 100644 (file)
@@ -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) {