Commit db6f938e authored by Thomas Guillem's avatar Thomas Guillem

gl: vaapi: fix double close

drm_fd is already closed from tc_vaegl_init in case of error.
parent 640dcf42
...@@ -434,7 +434,8 @@ opengl_tex_converter_vaapi_init(opengl_tex_converter_t *tc) ...@@ -434,7 +434,8 @@ opengl_tex_converter_vaapi_init(opengl_tex_converter_t *tc)
if (ret == VLC_SUCCESS) if (ret == VLC_SUCCESS)
return ret; return ret;
} }
vlc_close(drm_fd); else
vlc_close(drm_fd);
} }
/* Fallback to X11 or WAYLAND */ /* Fallback to X11 or WAYLAND */
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment