From 7cfec2d31bffd714559fbb9ec11ad585f56839c1 Mon Sep 17 00:00:00 2001 From: qinlong Date: Thu, 29 Sep 2022 15:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E7=BA=A7?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qinlong --- sa_profile/dscreen.cfg | 1 + .../screentransport/screensinktrans/src/screen_sink_trans.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sa_profile/dscreen.cfg b/sa_profile/dscreen.cfg index 551b4379..c579659f 100644 --- a/sa_profile/dscreen.cfg +++ b/sa_profile/dscreen.cfg @@ -7,6 +7,7 @@ "ondemand" : true, "apl" : "system_basic", "permission" : ["ohos.permission.DISTRIBUTED_DATASYNC", "ohos.permission.CAPTURE_SCREEN"], + "permission_acls" : ["ohos.permission.CAPTURE_SCREEN"], "secon" : "u:r:dscreen:s0" }] } \ No newline at end of file diff --git a/services/screentransport/screensinktrans/src/screen_sink_trans.cpp b/services/screentransport/screensinktrans/src/screen_sink_trans.cpp index 0728bdb8..8b92aa29 100644 --- a/services/screentransport/screensinktrans/src/screen_sink_trans.cpp +++ b/services/screentransport/screensinktrans/src/screen_sink_trans.cpp @@ -47,7 +47,7 @@ int32_t ScreenSinkTrans::SetUp(const VideoParam &localParam, const VideoParam &r int32_t ScreenSinkTrans::Release() { DHLOGI("%s: Release.", LOG_TAG); - if (imageProcessor_ ==nullptr || screenChannel_ == nullptr) { + if (imageProcessor_ == nullptr || screenChannel_ == nullptr) { DHLOGE("%s: Processor or channel is null, Setup first.", LOG_TAG); return ERR_DH_SCREEN_TRANS_NULL_VALUE; } -- Gitee