Skip to content

Commit

Permalink
gl: download: Fix a caps memory leak in _try_export_dmabuf().
Browse files Browse the repository at this point in the history
  • Loading branch information
HeJunyan authored and GStreamer Marge Bot committed Mar 3, 2021
1 parent f506a3e commit 3d96786
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/gl/gstgldownloadelement.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3d96786

Please sign in to comment.