diff options
author | Tim 'mithro' Ansell <mithro@mithis.com> | 2013-02-08 00:06:16 +1100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-02-07 14:07:17 +0000 |
commit | c8cbe98d906664c488ef5ab43ae6d6aea46db94b (patch) | |
tree | cf0eaa774ceeaee6073ae4d2bbc96f27b56e3927 /gst/gdp | |
parent | 6e440f1da47c60581e91c43ad6cf247c848b9a3f (diff) | |
download | gstreamer-plugins-bad-c8cbe98d906664c488ef5ab43ae6d6aea46db94b.tar.gz |
gdppay: fix buffer leak when new caps are same as old caps
The leak occurs when you got a message with identical caps to the ones you
already had.
https://bugzilla.gnome.org/show_bug.cgi?id=693324
Diffstat (limited to 'gst/gdp')
-rw-r--r-- | gst/gdp/gstgdppay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index b2d45444b..8e92c4cca 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -676,9 +676,9 @@ gst_gdp_pay_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) break; case GST_EVENT_CAPS:{ gst_event_parse_caps (event, &caps); + gst_buffer_replace (&outbuffer, NULL); 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) |