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

Commit 30b9abfa authored by Dorin Drimus's avatar Dorin Drimus Committed by Gerrit Code Review
Browse files

Merge "Fix codec2 setParameters before successful configure"

parents cefa59f5 3c838360
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5702,6 +5702,9 @@ status_t MediaCodec::setParameters(const sp<AMessage> &params) {
}

status_t MediaCodec::onSetParameters(const sp<AMessage> &params) {
    if (mState == UNINITIALIZED || mState == INITIALIZING) {
        return NO_INIT;
    }
    updateLowLatency(params);
    mapFormat(mComponentName, params, nullptr, false);
    updateTunnelPeek(params);