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:
Antoine Tremblay 2008-05-21 06:45:22 +00:00 committed by Sebastian Dröge
parent 3ee2676c2e
commit a8dda35c1b
2 changed files with 10 additions and 0 deletions

View file

@ -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>
* gst-libs/gst/rtsp/gstrtsptransport.h:

View file

@ -587,6 +587,9 @@ gst_gdp_pay_chain (GstPad * pad, GstBuffer * buffer)
GST_BUFFER_TIMESTAMP (outbuffer) = GST_BUFFER_TIMESTAMP (buffer);
GST_BUFFER_DURATION (outbuffer) = 0;
GST_BUFFER_FLAG_SET (outbuffer, GST_BUFFER_FLAG_IN_CAPS);
if (this->caps_buf)
gst_buffer_unref (this->caps_buf);
this->caps_buf = outbuffer;
gst_gdp_pay_reset_streamheader (this);
}