mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +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
3ee2676c2e
commit
a8dda35c1b
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-05-21 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
2008-05-21 Sebastian Dröge <slomo@circular-chaos.org>
|
2008-05-21 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* gst-libs/gst/rtsp/gstrtsptransport.h:
|
* gst-libs/gst/rtsp/gstrtsptransport.h:
|
||||||
|
|
|
@ -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