summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-01-16 15:42:46 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-18 11:38:04 +0000
commit28e650162615c575b6405c57b1de419f6738021f (patch)
tree844996c3a51c3366ce178af6ecd855cc99674f3a
parent54bdb8457b53655a76c7cceb2d3ccdf4c85ea736 (diff)
rtph263ppay: fix caps leak
-rw-r--r--gst/rtp/gstrtph263ppay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c
index d948b77f1..f85607e8c 100644
--- a/gst/rtp/gstrtph263ppay.c
+++ b/gst/rtp/gstrtph263ppay.c
@@ -236,7 +236,7 @@ static GstCaps *
gst_rtp_h263p_pay_sink_getcaps (GstBaseRTPPayload * payload, GstPad * pad)
{
GstRtpH263PPay *rtph263ppay;
- GstCaps *caps = gst_caps_new_empty ();
+ GstCaps *caps = NULL;
GstCaps *peercaps = NULL;
GstCaps *intersect = NULL;
guint i;
@@ -256,6 +256,7 @@ gst_rtp_h263p_pay_sink_getcaps (GstBaseRTPPayload * payload, GstPad * pad)
if (gst_caps_is_empty (intersect))
return intersect;
+ caps = gst_caps_new_empty ();
for (i = 0; i < gst_caps_get_size (intersect); i++) {
GstStructure *s = gst_caps_get_structure (intersect, i);
const gchar *encoding_name = gst_structure_get_string (s, "encoding-name");