projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
348afe1
)
flvmux: don't try to push already-freed buffers
author
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Sun, 25 Dec 2011 14:23:29 +0000
(14:23 +0000)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Sun, 25 Dec 2011 14:23:29 +0000
(14:23 +0000)
Fixes unit test.
gst/flv/gstflvmux.c
patch
|
blob
|
history
diff --git
a/gst/flv/gstflvmux.c
b/gst/flv/gstflvmux.c
index c7ee0a83167b85a3a8176c683552784625a9c607..aac216ace86dcbb380a30be778947dafde167474 100644
(file)
--- a/
gst/flv/gstflvmux.c
+++ b/
gst/flv/gstflvmux.c
@@
-567,6
+567,7
@@
gst_flv_mux_release_pad (GstElement * element, GstPad * pad)
static GstFlowReturn
gst_flv_mux_push (GstFlvMux * mux, GstBuffer * buffer)
{
+ buffer = gst_buffer_make_metadata_writable (buffer);
gst_buffer_set_caps (buffer, GST_PAD_CAPS (mux->srcpad));
/* pushing the buffer that rewrites the header will make it no longer be the
* total output size in bytes, but it doesn't matter at that point */
@@
-937,6
+938,7
@@
end:
if (!tags_written) {
gst_buffer_unref (script_tag);
+ script_tag = NULL;
goto exit;
}