From 1cea9c851cb3471218c1675f740ff5831c2d2fc7 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Tue, 29 Nov 2011 14:22:19 +0100 Subject: [PATCH] adder: unbreak adder There was one line too much removed when porting. --- gst/adder/gstadder.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index 4070f0d..1038726 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -1141,6 +1141,10 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data) GST_LOG_OBJECT (adder, "channel %p: preparing output buffer of %d bytes", collect_data, outsize); + /* make data and metadata writable, can simply return the inbuf when we + * are the only one referencing this buffer. If this is the last (and + * only) GAP buffer, it will automatically copy the GAP flag. */ + outbuf = gst_buffer_make_writable (inbuf); outdata = gst_buffer_map (outbuf, NULL, NULL, GST_MAP_WRITE); } else { if (!is_gap) { -- 2.7.4