From 009c88e0df1f53d9a7f38413776b8bcc1751480a Mon Sep 17 00:00:00 2001 From: 21pages Date: Fri, 21 Apr 2023 11:00:04 +0800 Subject: [PATCH] android synchronized stopCapture Signed-off-by: 21pages --- .../app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt index 1c3fbce6c..78e4e451e 100644 --- a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt +++ b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt @@ -384,6 +384,7 @@ class MainService : Service() { return true } + @Synchronized fun stopCapture() { Log.d(logTag, "Stop Capture") setFrameRawEnable("video",false)