gl: download: Fix a caps memory leak in _try_export_dmabuf().

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1058>
This commit is contained in:
He Junyan 2021-03-02 14:16:23 +08:00 committed by GStreamer Marge Bot
parent f506a3e0ff
commit 3d96786857

View file

@ -420,6 +420,7 @@ _try_export_dmabuf (GstGLDownloadElement * download, GstBuffer * inbuf)
src_caps = gst_pad_get_current_caps (GST_BASE_TRANSFORM (download)->srcpad);
gst_video_info_from_caps (&out_info, src_caps);
gst_caps_unref (src_caps);
if (download->add_videometa) {
GstVideoMeta *meta;