Skip to content

Commit

Permalink
fix(linux): ensure NvFBC capture works after multiple sessions (Lizar…
Browse files Browse the repository at this point in the history
  • Loading branch information
insanemal authored and KuleRucket committed Oct 9, 2024
1 parent 39fc45e commit 88f8a92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/linux/cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 88f8a92

Please sign in to comment.