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

Commit 014cc34c authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Android Build Coastguard Worker
Browse files

leaudio: Remove reduntant context type copy

With latest aligment of context type between directions, it is not
necessary to set local_metadata_context_types_.sink when
local_metadata_context_types_.source has changed.

This actually can break future context type when we set context type
with high priority e.g. CONVERSATIONAL

Bug: 367894783
Flag: Exempt, regression tested with unit test
Test: atest bluetooth_le_audio_client_test
(cherry picked from https://android-review.googlesource.com/q/commit:efb56a2b06210158c0264cb84428b5e200e3ad9e)
Merged-In: I957b331f0bfd7b8d60b971fcf0e7903004ae480f
Change-Id: I957b331f0bfd7b8d60b971fcf0e7903004ae480f
parent 89d49f92
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4570,8 +4570,6 @@ public:
    /* Set the remote sink metadata context from the playback tracks metadata */
    local_metadata_context_types_.source = GetAudioContextsFromSourceMetadata(source_metadata);

    local_metadata_context_types_.sink =
            ChooseMetadataContextType(local_metadata_context_types_.sink);
    local_metadata_context_types_.source =
            ChooseMetadataContextType(local_metadata_context_types_.source);