Skip to content

Commit

Permalink
fix(linux): ensure NvFBC capture works after multiple sessions (#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
insanemal authored Aug 16, 2024
1 parent a669b36 commit c246c78
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 c246c78

Please sign in to comment.