Fix leaking /dev/dri fds on each vaInitialize() failure

This commit is contained in:
Cameron Gutman
2023-08-01 22:53:22 -05:00
parent 7763ec3c5c
commit d147d36867
2 changed files with 32 additions and 11 deletions
@@ -61,6 +61,7 @@ public:
private:
VADisplay openDisplay(SDL_Window* window);
VAStatus tryVaInitialize(AVVAAPIDeviceContext* vaDeviceContext, PDECODER_PARAMETERS params, int* major, int* minor);
void renderOverlay(VADisplay display, VASurfaceID surface, Overlay::OverlayType type);
#if defined(HAVE_EGL) || defined(HAVE_DRM)