From 8f4bfeb698e656a8669a1e8e7db24022bd7d2ecb Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 7 Sep 2012 14:11:02 +0200 Subject: [PATCH] rtph263ppay: plug caps leak --- gst/rtp/gstrtph263ppay.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c index c944a0f..9cdc10a 100644 --- a/gst/rtp/gstrtph263ppay.c +++ b/gst/rtp/gstrtph263ppay.c @@ -247,9 +247,12 @@ gst_rtp_h263p_pay_sink_getcaps (GstRTPBasePayload * payload, GstPad * pad, /* if we're just outputting to udpsink or fakesink or so, we should also * accept any input compatible with our sink template caps */ - if (!peercaps || gst_caps_is_any (peercaps)) + if (!peercaps || gst_caps_is_any (peercaps)) { + if (peercaps) + gst_caps_unref (peercaps); return gst_pad_get_pad_template_caps (GST_RTP_BASE_PAYLOAD_SINKPAD (payload)); + } /* We basically need to differentiate two use-cases here: One where there's * a capsfilter after the payloader with caps created from an SDP; in this -- 2.7.4