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

Commit 16a0e909 authored by Bao Do's avatar Bao Do
Browse files

Fix broken failure condition when populating ase configurtion.

Bug: 358194849
Test: atest BluetoothLeAudioCodecsProviderTest
Change-Id: I2bd99b7584dda056edd62449317ad22f62bbb17f
parent d3b04002
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -674,17 +674,17 @@ void AudioSetConfigurationProviderJson::PopulateAseConfigurationFromFlat(
        configurationFlags.bitmask |=
            ConfigurationFlags::ALLOW_ASYMMETRIC_CONFIGURATIONS;
      }
    }
  } else {
    if (codec_cfg == nullptr) {
        LOG(ERROR) << "No codec config matching key "
                   << codec_config_key.c_str() << " found";
      LOG(ERROR) << "No codec config matching key " << codec_config_key.c_str()
                 << " found";
    } else {
      LOG(ERROR) << "Configuration '" << flat_cfg->name()->c_str()
                 << "' has no valid subconfigurations.";
    }
  }
}
}

bool AudioSetConfigurationProviderJson::LoadConfigurationsFromFiles(
    const char* schema_file, const char* content_file, CodecLocation location) {