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>
This commit is contained in:
Bill Nottingham 2024-05-03 22:35:21 -04:00 committed by GStreamer Marge Bot
parent 06cd4e2457
commit 5d7d3c6c0f

View file

@ -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);