intel / libva

Libva is an implementation for VA-API (Video Acceleration API)
http://intel.github.io/libva/
Other
664 stars 302 forks source link

va: fix the fd leak issue caused by vaInitialize failure #753

Open XinfengZhang opened 1 year ago

XinfengZhang commented 1 year ago

Fixes #741

evelikov commented 1 year ago

Instead, the display specifics should be moved from vaInitialize to vaGetDisplay time, although that's not particularly clear and easy with the current vaGetDisplay API. Ideally VAAPI will evolve an https://registry.khronos.org/EGL/sdk/docs/man/html/eglGetPlatformDisplay.xhtml like API - adding the other "Platform*" APIs from EGL_EXT_platform_base (or similar extensions) would be a wise move IMHO.