summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorHavard Graff <havard.graff@gmail.com>2016-06-22 13:59:35 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-11-01 20:20:47 +0200
commit78ab8cbdcd0b0bca80dfd3eeb0601a8c41207149 (patch)
treedda2efef22d4568733cbeb5a6eaf58b258ace1fd /gst
parentfca2d2f9f0313f57a0c4c70f2ef9324ffc693895 (diff)
rtph263ppay: Fix caps leak
Fix leaking caps when downstream has not-fixed caps. https://bugzilla.gnome.org/show_bug.cgi?id=773515
Diffstat (limited to 'gst')
-rw-r--r--gst/rtp/gstrtph263ppay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c
index 176d7ccae..b9bc45a6d 100644
--- a/gst/rtp/gstrtph263ppay.c
+++ b/gst/rtp/gstrtph263ppay.c
@@ -266,6 +266,7 @@ gst_rtp_h263p_pay_sink_getcaps (GstRTPBasePayload * payload, GstPad * pad,
* where we are dealing with the depayloader's template caps. In this case
* we should accept any input compatible with our sink template caps. */
if (!gst_caps_is_fixed (peercaps)) {
+ gst_caps_unref (peercaps);
caps =
gst_pad_get_pad_template_caps (GST_RTP_BASE_PAYLOAD_SINKPAD (payload));
goto done;