summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Nottingham <notting@splat.cc>2024-05-03 22:35:21 -0400
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>2024-05-07 18:53:20 +0100
commit9bcd51d6ed3081cf2e4d25ce2b2cd59827043663 (patch)
tree0578aa66bb6342033af04ad1d25f56e618bcec1b
parent3dff559d8b6b6c51d6b524c7bc441911b4e79828 (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/6815>
-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);