From 5d7d3c6c0fdf81ad21c9e71bffd1f44ee6959454 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 3 May 2024 22:35:21 -0400 Subject: [PATCH] pbutils: fix visualization plugins inbuf is persistent, GST_BUFFER_COPY_MEMORY's append behavior is not what we want. Part-of: --- .../gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c | 1 + 1 file changed, 1 insertion(+) 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);