fix: correct array deletion and improve state management in WGC screen capturer

This commit is contained in:
dijunkun
2025-12-01 23:06:46 +08:00
parent b50f386713
commit 2e52818f6f
2 changed files with 62 additions and 11 deletions

View File

@@ -3,6 +3,7 @@
#include <atomic>
#include <functional>
#include <mutex>
#include <string>
#include <thread>
#include <vector>
@@ -65,6 +66,10 @@ class ScreenCapturerWgc : public ScreenCapturer,
unsigned char* nv12_frame_ = nullptr;
unsigned char* nv12_frame_scaled_ = nullptr;
int nv12_width_ = 0;
int nv12_height_ = 0;
std::mutex frame_mutex_;
};
} // namespace crossdesk
#endif