mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
Fix fd leak in VAAPI KMSDRM codepath
This commit is contained in:
1 parent
2b690d14ad
commit
bfc6751f0f
1 file changed
+3
@@ -161,6 +161,9 @@ VAAPIRenderer::openDisplay(SDL_Window* window)
|
|||||||
errno);
|
errno);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
// This FD is owned by us (not shared with SDL), so it must be
|
||||||
|
// closed when we're done with it or adopted into m_DrmFd.
|
||||||
|
mustCloseFd = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the KMSDRM FD is not a render node FD, open the render node for libva to use.
|
// If the KMSDRM FD is not a render node FD, open the render node for libva to use.
|
||||||
|
|||||||
Reference in new issue
Block a user