summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-04-25 18:07:21 +0200
committerTim-Philipp Müller <tim@centricular.net>2012-09-11 01:54:46 +0100
commit712c63af44b34038bd1f7a4ce48b63b19235043c (patch)
treeb5eef1ce685d55b3aefc99e2f082d353dd688e0e
parent07f8c2a4e633975e57680cabde09b9db01d5c4fc (diff)
gdppay: plug buffer leak
-rw-r--r--gst/gdp/gstgdppay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c
index 53f0611a7..d26c0a3cf 100644
--- a/gst/gdp/gstgdppay.c
+++ b/gst/gdp/gstgdppay.c
@@ -678,6 +678,7 @@ gst_gdp_pay_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
gst_event_parse_caps (event, &caps);
if (this->caps == NULL || !gst_caps_is_equal (this->caps, caps)) {
GST_INFO_OBJECT (pad, "caps changed to %" GST_PTR_FORMAT, caps);
+ gst_buffer_replace (&outbuffer, NULL);
gst_caps_replace (&this->caps, caps);
outbuffer = gst_gdp_buffer_from_caps (this, caps);
if (outbuffer == NULL)