Close dmabuf_fd

Otherwise it will result in resource leak when failed to create
dmabuf memory
This commit is contained in:
Xiang, Haihao 2018-11-20 16:07:44 +08:00
parent 072f49cdcf
commit c728fb4ff6

View file

@ -1060,6 +1060,7 @@ error_create_dmabuf_handle:
error_create_dmabuf_memory:
{
GST_ERROR ("failed to create DMABUF memory");
close (dmabuf_fd);
gst_vaapi_buffer_proxy_unref (dmabuf_proxy);
return NULL;
}