fix(linux): ensure NvFBC capture works after multiple sessions (#3020)

This commit is contained in:
Insanemal 2024-08-16 11:30:00 +10:00 committed by GitHub
commit c246c78b13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -702,6 +702,7 @@ namespace cuda {
NVFBC_DESTROY_HANDLE_PARAMS params { NVFBC_DESTROY_HANDLE_PARAMS_VER };
ctx_t ctx { handle };
if (func.nvFBCDestroyHandle(handle, &params)) {
BOOST_LOG(error) << "Couldn't destroy session handle: "sv << func.nvFBCGetLastErrorStr(handle);
}