mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] do not use smart pointer to manage std::thread objects
This commit is contained in:
@@ -77,7 +77,7 @@ class ScreenCapturerX11 : public ScreenCapturer {
|
||||
struct SwsContext *img_convert_ctx_ = nullptr;
|
||||
|
||||
// thread
|
||||
std::unique_ptr<std::thread> capture_thread_ = nullptr;
|
||||
std::thread capture_thread_;
|
||||
std::atomic_bool running_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user