Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d2938f3 authored by Josh Wu's avatar Josh Wu
Browse files

BtAudio: Iterate reference in VTS helper

Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: Ie640c2444e523984a04378b96916d0a3e63f49cd
parent fd4d63ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -417,7 +417,7 @@ class BluetoothAudioProviderA2dpHardwareAidl

  void GetA2dpOffloadCapabilityHelper(const CodecType& codec_type) {
    temp_codec_capabilities_ = nullptr;
    for (auto codec_capability : temp_provider_capabilities_) {
    for (auto& codec_capability : temp_provider_capabilities_) {
      auto& a2dp_capabilities =
          codec_capability.get<AudioCapabilities::a2dpCapabilities>();
      if (a2dp_capabilities.codecType != codec_type) {