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

Commit fbc61868 authored by Dongwon Kang's avatar Dongwon Kang Committed by Android (Google) Code Review
Browse files

Merge "Fix MediaPlayer2AudioOutput::setAudioAttributes()"

parents 0afd92ba 203b0533
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 {