mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
audiovisualizer: fix buffer mapping to not increase refcount
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2953>
This commit is contained in:
parent
6b1ffadb0c
commit
8648f5f7d2
1 changed files with 2 additions and 1 deletions
|
@ -1168,7 +1168,8 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
|
|||
if (!(adata = (gpointer) gst_adapter_map (scope->priv->adapter, sbpf)))
|
||||
break;
|
||||
|
||||
gst_video_frame_map (&outframe, &scope->vinfo, outbuf, GST_MAP_READWRITE);
|
||||
gst_video_frame_map (&outframe, &scope->vinfo, outbuf,
|
||||
GST_MAP_READWRITE | GST_VIDEO_FRAME_MAP_FLAG_NO_REF);
|
||||
|
||||
if (scope->priv->shader) {
|
||||
gst_video_frame_copy (&outframe, &scope->priv->tempframe);
|
||||
|
|
Loading…
Reference in a new issue