rtpvp8pay, rtpvp9pay: fix caps leak in set_caps()
authorStian Selnes <stian@pexip.com>
Fri, 19 Oct 2018 14:17:17 +0000 (16:17 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 12 Mar 2020 16:49:58 +0000 (16:49 +0000)
gst/rtp/gstrtpvp8pay.c
gst/rtp/gstrtpvp9pay.c

index 17a7788..ed6a2a2 100644 (file)
@@ -531,6 +531,7 @@ gst_rtp_vp8_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
       if (!gst_value_can_intersect (&default_value, value))
         encoding_name = "VP8-DRAFT-IETF-01";
     }
+    gst_caps_unref (src_caps);
   }
 
   gst_rtp_base_payload_set_options (payload, "video", TRUE,
index fd16765..facf624 100644 (file)
@@ -546,6 +546,7 @@ gst_rtp_vp9_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
       if (!gst_value_can_intersect (&default_value, value))
         encoding_name = "VP9-DRAFT-IETF-01";
     }
+    gst_caps_unref (src_caps);
   }
 
   gst_rtp_base_payload_set_options (payload, "video", TRUE,