[fix] fix SCStream stop error

This commit is contained in:
dijunkun
2025-06-03 10:44:52 +08:00
parent 383ace2493
commit b04dfd188a

View File

@@ -280,7 +280,6 @@ int ScreenCapturerSckImpl::Destroy() {
} }
int ScreenCapturerSckImpl::Stop() { int ScreenCapturerSckImpl::Stop() {
[stream_ stopCaptureWithCompletionHandler:nil];
std::lock_guard<std::mutex> lock(lock_); std::lock_guard<std::mutex> lock(lock_);
if (stream_) { if (stream_) {
LOG_INFO("Stopping stream"); LOG_INFO("Stopping stream");