mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
get a writable buffer
Original commit message from CVS: get a writable buffer
This commit is contained in:
parent
81fc9a9cb3
commit
2976d0f45d
1 changed files with 4 additions and 1 deletions
|
@ -285,6 +285,9 @@ gst_bpwsinc_chain (GstPad * pad, GstBuffer * buf)
|
||||||
* to make amends we keep the incoming buffer around and write our
|
* to make amends we keep the incoming buffer around and write our
|
||||||
* output samples there */
|
* output samples there */
|
||||||
|
|
||||||
|
/* get a writable buffer */
|
||||||
|
buf = gst_buffer_copy_on_write (buf);
|
||||||
|
|
||||||
src = (gfloat *) GST_BUFFER_DATA (buf);
|
src = (gfloat *) GST_BUFFER_DATA (buf);
|
||||||
residue_samples = filter->wing_size * 2 + 1;
|
residue_samples = filter->wing_size * 2 + 1;
|
||||||
input_samples = GST_BUFFER_SIZE (buf) / sizeof (gfloat);
|
input_samples = GST_BUFFER_SIZE (buf) / sizeof (gfloat);
|
||||||
|
|
Loading…
Reference in a new issue