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

Commit 64071a46 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Automerger Merge Worker
Browse files

Merge "Clear target allocation as is_initial flag as true" am: b0604987 am: e3abc296

parents 521a23b1 e3abc296
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1694,6 +1694,11 @@ void LeAudioDeviceGroup::CreateStreamVectorForOffloader(uint8_t direction) {

  if (offloader_streams_target_allocation->size() == 0) {
    *is_initial = true;
  } else if (*is_initial) {
    // As multiple CISes phone call case, the target_allocation already have the
    // previous data, but the is_initial flag not be cleared. We need to clear
    // here to avoid make duplicated target allocation stream map.
    offloader_streams_target_allocation->clear();
  }

  offloader_streams_current_allocation->clear();