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/6814>
This commit is contained in:
Bill Nottingham 2024-05-03 22:35:21 -04:00 committed by Backport Bot
parent 7bebb24880
commit 59dfc54b61

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