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

Commit 3adcd6dd authored by lumei's avatar lumei
Browse files

update scale mode to MediaCodec under NuPlayer::instantiateDecoder



Change-Id: Ife52c37a483552bfc77acd21663ed1cd51a4e036
Signed-off-by: default avatarlumei <lumei1@xiaomi.corp-partner.google.com>
parent 1a442e92
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1977,6 +1977,8 @@ status_t NuPlayer::instantiateDecoder(
        if (rate > 0) {
            format->setFloat("operating-rate", rate * mPlaybackSettings.mSpeed);
        }

        format->setInt32("android._video-scaling", mVideoScalingMode);
    }

    Mutex::Autolock autoLock(mDecoderLock);