mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
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
This commit is contained in:
parent
6e440f1da4
commit
c8cbe98d90
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue