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

Commit cc38d718 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: add missing encapsulation type default init in AudioProfile

The AudioProfile class has 3 constructors and one of them was not
initializing mEncapsulationType member.

Bug: 186719136
Test: run gts -a armeabi-v7a -m GtsGmscoreHostTestCases -t com.google.android.gts.audio.AudioHostTest#testTwoChannelCapturingCheckSubmixDevice
Change-Id: Ic7ecc9cfa28f7da2856b38d444f66c7808d36557
parent 369aa588
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ private:
    bool mIsDynamicChannels = false;
    bool mIsDynamicRate = false;

    audio_encapsulation_type_t mEncapsulationType;
    audio_encapsulation_type_t mEncapsulationType = AUDIO_ENCAPSULATION_TYPE_NONE;

    AudioProfile() = default;
    AudioProfile& operator=(const AudioProfile& other);