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

Commit 87aed14c authored by Chong Zhang's avatar Chong Zhang
Browse files

SoftAVCDec: init decoder using updated size

bug: 22451704
Change-Id: I29ba0c1e280f57ba9abc86ddd7eef6fb46df6d19
parent a8dc93ef
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -526,6 +526,8 @@ OMX_ERRORTYPE SoftAVC::internalSetParameter(OMX_INDEXTYPE index, const OMX_PTR p
    const uint32_t oldHeight = mHeight;
    const uint32_t oldHeight = mHeight;
    OMX_ERRORTYPE ret = SoftVideoDecoderOMXComponent::internalSetParameter(index, params);
    OMX_ERRORTYPE ret = SoftVideoDecoderOMXComponent::internalSetParameter(index, params);
    if (mWidth != oldWidth || mHeight != oldHeight) {
    if (mWidth != oldWidth || mHeight != oldHeight) {
        mNewWidth = mWidth;
        mNewHeight = mHeight;
        status_t err = reInitDecoder(mNewWidth, mNewHeight);
        status_t err = reInitDecoder(mNewWidth, mNewHeight);
        if (err != OK) {
        if (err != OK) {
            notify(OMX_EventError, OMX_ErrorUnsupportedSetting, err, NULL);
            notify(OMX_EventError, OMX_ErrorUnsupportedSetting, err, NULL);