From c246c78b13f472e88cd863e0da09cdf2a7c970c6 Mon Sep 17 00:00:00 2001 From: Insanemal Date: Fri, 16 Aug 2024 11:30:00 +1000 Subject: [PATCH] fix(linux): ensure NvFBC capture works after multiple sessions (#3020) --- src/platform/linux/cuda.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/linux/cuda.cpp b/src/platform/linux/cuda.cpp index b5374b18..5498d9a8 100644 --- a/src/platform/linux/cuda.cpp +++ b/src/platform/linux/cuda.cpp @@ -702,6 +702,7 @@ namespace cuda { NVFBC_DESTROY_HANDLE_PARAMS params { NVFBC_DESTROY_HANDLE_PARAMS_VER }; + ctx_t ctx { handle }; if (func.nvFBCDestroyHandle(handle, ¶ms)) { BOOST_LOG(error) << "Couldn't destroy session handle: "sv << func.nvFBCGetLastErrorStr(handle); }