gst-plugins-base: gdppay: plug buffer leak

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Wed Apr 25 13:30:27 PDT 2012


Module: gst-plugins-base
Branch: master
Commit: 9ea22283d083e41a592557fd20842f52b15f7ca6
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=9ea22283d083e41a592557fd20842f52b15f7ca6

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Wed Apr 25 18:07:21 2012 +0200

gdppay: plug buffer leak

---

 gst/gdp/gstgdppay.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c
index 53f0611..d26c0a3 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)



More information about the gstreamer-commits mailing list