copy_on_write
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 30 Aug 2002 15:30:04 +0000 (15:30 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 30 Aug 2002 15:30:04 +0000 (15:30 +0000)
Original commit message from CVS:
copy_on_write

gst/audiofx/audiowsinclimit.c

index 9a0b65e..fc916a8 100644 (file)
@@ -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);