summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2002-08-30 15:30:04 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2002-08-30 15:30:04 +0000
commit68b9c479079002ebec1880bc0c1a9caec21fae61 (patch)
treee2626669c8e9f936a8acb8c24900f9a8ff0876e3 /gst
parent2976d0f45d1d3a22bbccbc2921c702fb715e6bea (diff)
copy_on_write
Original commit message from CVS: copy_on_write
Diffstat (limited to 'gst')
-rw-r--r--gst/audiofx/audiowsinclimit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/audiofx/audiowsinclimit.c b/gst/audiofx/audiowsinclimit.c
index 9a0b65e1..fc916a82 100644
--- a/gst/audiofx/audiowsinclimit.c
+++ b/gst/audiofx/audiowsinclimit.c
@@ -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);