Commit 639b1183 authored by Bjarne Rosengren's avatar Bjarne Rosengren Committed by Sebastian Dröge
Browse files

gst/matroska/ebml-write.c: Don't leak buffers when we don't push them downstream.

Original commit message from CVS:
Patch by: Bjarne Rosengren <bjarne at axis dot com>
* gst/matroska/ebml-write.c: (gst_ebml_write_element_push):
Don't leak buffers when we don't push them downstream.
Fixes bug #514965.
parent 564ffdee
2008-02-07 Sebastian Dröge <slomo@circular-chaos.org>
Patch by: Bjarne Rosengren <bjarne at axis dot com>
* gst/matroska/ebml-write.c: (gst_ebml_write_element_push):
Don't leak buffers when we don't push them downstream.
Fixes bug #514965.
2008-02-07 Tim-Philipp Müller <tim at centricular dot net>
 
* configure.ac:
......
......@@ -371,6 +371,9 @@ gst_ebml_write_element_push (GstEbmlWrite * ebml, GstBuffer * buf)
buf = gst_buffer_make_metadata_writable (buf);
gst_buffer_set_caps (buf, GST_PAD_CAPS (ebml->srcpad));
ebml->last_write_result = gst_pad_push (ebml->srcpad, buf);
} else {
if (buf != ebml->cache)
gst_buffer_unref (buf);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment