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

Commit 203b0533 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Fix MediaPlayer2AudioOutput::setAudioAttributes()

regression from Ibe19c8a259c735ea2b5822f769babaf4

Test: MediaPlayer2Test
Change-Id: If1deea900858ba817021d573d859ca8e733e260e
parent 54cbc298
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -243,9 +243,7 @@ status_t MediaPlayer2AudioOutput::getFramesWritten(uint32_t *frameswritten) cons

void MediaPlayer2AudioOutput::setAudioAttributes(const jobject attributes) {
    Mutex::Autolock lock(mLock);
    if (attributes != nullptr) {
        sp<JObjectHolder> x = new JObjectHolder(attributes);
    }
    mAttributes = (attributes == nullptr) ? nullptr : new JObjectHolder(attributes);
}

audio_stream_type_t MediaPlayer2AudioOutput::getAudioStreamType() const {