From 3ad2a3049fc0c72e6589e4607df35889b5599efb Mon Sep 17 00:00:00 2001 From: lisen Date: Mon, 1 Sep 2025 16:26:05 +0800 Subject: [PATCH] =?UTF-8?q?a2dpin=E8=AE=BE=E5=A4=87=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lisen --- .../server/domain/router/privacy_priority_router.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/audio_policy/server/domain/router/privacy_priority_router.cpp b/services/audio_policy/server/domain/router/privacy_priority_router.cpp index d63c0286bf..51e60e843b 100644 --- a/services/audio_policy/server/domain/router/privacy_priority_router.cpp +++ b/services/audio_policy/server/domain/router/privacy_priority_router.cpp @@ -140,8 +140,13 @@ shared_ptr PrivacyPriorityRouter::GetRecordCaptureDevice( return desc; } } - vector> descs = + vector> originDescs = AudioDeviceManager::GetAudioDeviceManager().GetMediaCapturePrivacyDevices(); + vector> descs; + for (const auto &desc : originDescs) { + CHECK_AND_CONTINUE(desc != nullptr && desc->deviceType_ != DEVICE_TYPE_BLUETOOTH_A2DP_IN); + descs.push_back(make_shared(*desc)); + } shared_ptr desc = GetLatestNonExcludedConnectDevice(MEDIA_INPUT_DEVICES, descs); CHECK_AND_RETURN_RET_LOG(desc != nullptr, make_shared(), "nullptr desc"); AUDIO_DEBUG_LOG("sourceType %{public}d clientUID %{public}d fetch device %{public}d", sourceType, -- Gitee