From 7aeb8ad01024ead552ac00709d78dac35b4d3fe2 Mon Sep 17 00:00:00 2001 From: jiao Date: Thu, 6 Feb 2025 20:01:13 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8F=98=E9=87=8F=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiao --- frameworks/binder/audio_capturer_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/binder/audio_capturer_client.cpp b/frameworks/binder/audio_capturer_client.cpp index b7d5ad9..03634f0 100644 --- a/frameworks/binder/audio_capturer_client.cpp +++ b/frameworks/binder/audio_capturer_client.cpp @@ -324,10 +324,10 @@ bool AudioCapturer::AudioCapturerClient::Start() return false; } - int32_t ret = proxy_->Invoke(proxy_, AUD_CAP_FUNC_START, &io, ¶, ProxyCallbackFunc); + bool ret = proxy_->Invoke(proxy_, AUD_CAP_FUNC_START, &io, ¶, ProxyCallbackFunc); if (ret) { MEDIA_ERR_LOG("Start failed, ret=%d", ret); - return ret; + return true; } return para.ret; From 379f9c15af8f479d4f91d86be050bd4349d17dcf Mon Sep 17 00:00:00 2001 From: jiao Date: Thu, 6 Feb 2025 20:15:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiao --- frameworks/binder/audio_capturer_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/binder/audio_capturer_client.cpp b/frameworks/binder/audio_capturer_client.cpp index 03634f0..510de95 100644 --- a/frameworks/binder/audio_capturer_client.cpp +++ b/frameworks/binder/audio_capturer_client.cpp @@ -324,10 +324,10 @@ bool AudioCapturer::AudioCapturerClient::Start() return false; } - bool ret = proxy_->Invoke(proxy_, AUD_CAP_FUNC_START, &io, ¶, ProxyCallbackFunc); + int32_t ret = proxy_->Invoke(proxy_, AUD_CAP_FUNC_START, &io, ¶, ProxyCallbackFunc); if (ret) { MEDIA_ERR_LOG("Start failed, ret=%d", ret); - return true; + return false; } return para.ret; From 664e71e5f2e810add03ca26b8c6b6b2998e58419 Mon Sep 17 00:00:00 2001 From: jiao Date: Fri, 7 Feb 2025 15:24:52 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiao --- frameworks/binder/audio_capturer_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/binder/audio_capturer_client.cpp b/frameworks/binder/audio_capturer_client.cpp index 510de95..f51632f 100644 --- a/frameworks/binder/audio_capturer_client.cpp +++ b/frameworks/binder/audio_capturer_client.cpp @@ -348,7 +348,7 @@ bool AudioCapturer::AudioCapturerClient::Stop() int32_t ret = proxy_->Invoke(proxy_, AUD_CAP_FUNC_STOP, &io, ¶, ProxyCallbackFunc); if (ret) { MEDIA_ERR_LOG("Stop failed, ret=%d", ret); - return ret; + return false; } return para.ret; @@ -369,7 +369,7 @@ bool AudioCapturer::AudioCapturerClient::Release() int32_t ret = proxy_->Invoke(proxy_, AUD_CAP_FUNC_RELEASE, &io, ¶, ProxyCallbackFunc); if (ret) { MEDIA_ERR_LOG("Release failed, ret=%d", ret); - return ret; + return false; } DeleteSurface();