Original commit message from CVS:
Patch by: Antoine Tremblay <hexa00 at gmail dot com>
* gst/gdp/gstgdppay.c: (gst_gdp_pay_reset):
Fix a buffer memleak and remove a confusing and wrong debug output.
Fixes bug #538663.
GstBuffer *buffer;
buffer = GST_BUFFER_CAST (this->queue->data);
GstBuffer *buffer;
buffer = GST_BUFFER_CAST (this->queue->data);
- GST_DEBUG_OBJECT (this, "Pushing queued GDP buffer %p", buffer);
/* delete buffer from queue now */
this->queue = g_list_delete_link (this->queue, this->queue);
/* delete buffer from queue now */
this->queue = g_list_delete_link (this->queue, this->queue);
+
+ gst_buffer_unref (buffer);
}
if (this->caps) {
gst_caps_unref (this->caps);
}
if (this->caps) {
gst_caps_unref (this->caps);