fix(linux): ensure NvFBC capture works after multiple sessions (#3020)
This commit is contained in:
@@ -702,6 +702,7 @@ namespace cuda {
|
|||||||
|
|
||||||
NVFBC_DESTROY_HANDLE_PARAMS params { NVFBC_DESTROY_HANDLE_PARAMS_VER };
|
NVFBC_DESTROY_HANDLE_PARAMS params { NVFBC_DESTROY_HANDLE_PARAMS_VER };
|
||||||
|
|
||||||
|
ctx_t ctx { handle };
|
||||||
if (func.nvFBCDestroyHandle(handle, ¶ms)) {
|
if (func.nvFBCDestroyHandle(handle, ¶ms)) {
|
||||||
BOOST_LOG(error) << "Couldn't destroy session handle: "sv << func.nvFBCGetLastErrorStr(handle);
|
BOOST_LOG(error) << "Couldn't destroy session handle: "sv << func.nvFBCGetLastErrorStr(handle);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user