mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-07-26 01:08:41 +08:00
[fix] fix crash when switching monitors due to race condition and missing bounds checks in screen capturer
This commit is contained in:
@@ -72,6 +72,7 @@ class ScreenCapturerDxgi : public ScreenCapturer {
|
||||
std::thread thread_;
|
||||
int fps_ = 60;
|
||||
cb_desktop_data callback_ = nullptr;
|
||||
std::mutex switch_mutex_;
|
||||
|
||||
unsigned char* nv12_frame_ = nullptr;
|
||||
int nv12_width_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user