summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorBill Nottingham <notting@splat.cc>2024-05-03 22:35:21 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-05-07 14:48:47 +0000
commit5d7d3c6c0fdf81ad21c9e71bffd1f44ee6959454 (patch)
tree45bad0cb68e8002fce0ece50a5d99c7c6337d97d /subprojects
parent06cd4e24578caf1e16e364eb56edbbb065b8533e (diff)
pbutils: fix visualization plugins
inbuf is persistent, GST_BUFFER_COPY_MEMORY's append behavior is not what we want. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6800>
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c
index 180071bbb1..e46af8506d 100644
--- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c
+++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c
@@ -1181,6 +1181,7 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
}
}
+ gst_buffer_remove_all_memory (inbuf);
gst_buffer_copy_into (inbuf, databuf, GST_BUFFER_COPY_MEMORY, 0, sbpf);
gst_buffer_unref (databuf);