mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
copy_on_write
Original commit message from CVS: copy_on_write
This commit is contained in:
parent
2976d0f45d
commit
68b9c47907
1 changed files with 3 additions and 0 deletions
|
@ -234,6 +234,9 @@ gst_lpwsinc_chain (GstPad * pad, GstBuffer * buf)
|
|||
* to make amends we keep the incoming buffer around and write our
|
||||
* output samples there */
|
||||
|
||||
/* get a writable buffer */
|
||||
buf = gst_buffer_copy_on_write (buf);
|
||||
|
||||
src = (gfloat *) GST_BUFFER_DATA (buf);
|
||||
residue_samples = filter->wing_size * 2 + 1;
|
||||
input_samples = GST_BUFFER_SIZE (buf) / sizeof (gfloat);
|
||||
|
|
Loading…
Reference in a new issue