mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
gst/gdp/gstgdppay.c: Close a buffer memory leak. Fixes bug #534071.
Original commit message from CVS: Patch by: Antoine Tremblay <hexa00 at gmail dot com> * gst/gdp/gstgdppay.c: (gst_gdp_pay_chain): Close a buffer memory leak. Fixes bug #534071.
This commit is contained in:
parent
6f7b2e2a3b
commit
79c0a10f00
1 changed files with 3 additions and 0 deletions
|
@ -587,6 +587,9 @@ gst_gdp_pay_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
GST_BUFFER_TIMESTAMP (outbuffer) = GST_BUFFER_TIMESTAMP (buffer);
|
GST_BUFFER_TIMESTAMP (outbuffer) = GST_BUFFER_TIMESTAMP (buffer);
|
||||||
GST_BUFFER_DURATION (outbuffer) = 0;
|
GST_BUFFER_DURATION (outbuffer) = 0;
|
||||||
GST_BUFFER_FLAG_SET (outbuffer, GST_BUFFER_FLAG_IN_CAPS);
|
GST_BUFFER_FLAG_SET (outbuffer, GST_BUFFER_FLAG_IN_CAPS);
|
||||||
|
|
||||||
|
if (this->caps_buf)
|
||||||
|
gst_buffer_unref (this->caps_buf);
|
||||||
this->caps_buf = outbuffer;
|
this->caps_buf = outbuffer;
|
||||||
gst_gdp_pay_reset_streamheader (this);
|
gst_gdp_pay_reset_streamheader (this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue