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
parent a669b36c31
commit c246c78b13

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);
}