mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Fix gst_buffer_copy_on_write() problem in chain_int function, too
Original commit message from CVS: Fix gst_buffer_copy_on_write() problem in chain_int function, too
This commit is contained in:
parent
1bed6cbedd
commit
4887bfaee3
1 changed files with 1 additions and 7 deletions
|
@ -304,13 +304,7 @@ volume_chain_int16 (GstPad *pad, GstBuffer *buf)
|
|||
filter = GST_VOLUME(GST_OBJECT_PARENT (pad));
|
||||
g_return_if_fail(GST_IS_VOLUME(filter));
|
||||
|
||||
if (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_READONLY)){
|
||||
out_buf = gst_buffer_copy (buf);
|
||||
gst_buffer_unref(buf);
|
||||
}
|
||||
else {
|
||||
out_buf = buf;
|
||||
}
|
||||
out_buf = gst_buffer_copy_on_write (buf);
|
||||
|
||||
data = (gint16 *)GST_BUFFER_DATA(out_buf);
|
||||
num_samples = GST_BUFFER_SIZE(out_buf)/sizeof(gint16);
|
||||
|
|
Loading…
Reference in a new issue