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

This commit is contained in:
Cameron Gutman committed 2023-08-01 22:53:22 -05:00
1 parent 7763ec3c5c
commit d147d36867
2 files changed
+32 -11

No files matched your search

@@ -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)