summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStian Selnes <stian@pexip.com>2018-10-19 16:17:17 +0200
committerTim-Philipp Müller <tim@centricular.com>2020-03-13 14:39:36 +0000
commit88df7aba22ee9013ab355da1b2ba02df935f80ab (patch)
tree1f4ea6cc67e618de9b3904e248211eae33dfd87b
parent679ec82e9d3404059e89136f656c9a5f091caf1a (diff)
rtpvp8pay, rtpvp9pay: fix caps leak in set_caps()
-rw-r--r--gst/rtp/gstrtpvp8pay.c1
-rw-r--r--gst/rtp/gstrtpvp9pay.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpvp8pay.c b/gst/rtp/gstrtpvp8pay.c
index 17a7788c1..ed6a2a261 100644
--- a/gst/rtp/gstrtpvp8pay.c
+++ b/gst/rtp/gstrtpvp8pay.c
@@ -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,
diff --git a/gst/rtp/gstrtpvp9pay.c b/gst/rtp/gstrtpvp9pay.c
index fd1676588..facf62415 100644
--- a/gst/rtp/gstrtpvp9pay.c
+++ b/gst/rtp/gstrtpvp9pay.c
@@ -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,