adder: The output buffer must be readable and writable
This commit is contained in:
parent
509246cbac
commit
308c8fef68
@ -1318,7 +1318,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
|
|||||||
* are the only one referencing this buffer. If this is the last (and
|
* are the only one referencing this buffer. If this is the last (and
|
||||||
* only) GAP buffer, it will automatically copy the GAP flag. */
|
* only) GAP buffer, it will automatically copy the GAP flag. */
|
||||||
outbuf = gst_buffer_make_writable (inbuf);
|
outbuf = gst_buffer_make_writable (inbuf);
|
||||||
gst_buffer_map (outbuf, &outmap, GST_MAP_WRITE);
|
gst_buffer_map (outbuf, &outmap, GST_MAP_READWRITE);
|
||||||
} else {
|
} else {
|
||||||
if (!is_gap) {
|
if (!is_gap) {
|
||||||
/* we had a previous output buffer, mix this non-GAP buffer */
|
/* we had a previous output buffer, mix this non-GAP buffer */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user