From: Rafael Caricio Date: Tue, 30 Aug 2022 12:29:41 +0000 (+0200) Subject: audiovisualizer: fix buffer mapping to not increase refcount X-Git-Tag: 1.22.0~1039 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8648f5f7d278c639a41194b338f302c42834ab75;p=platform%2Fupstream%2Fgstreamer.git audiovisualizer: fix buffer mapping to not increase refcount Part-of: --- 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 b8cefd9..6e4fc0c 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c @@ -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);