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

Commit ea35b4e1 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

stagefright: don't fail MediaCodec.configure if clients use store-meta key am:...

stagefright: don't fail MediaCodec.configure if clients use store-meta key am: ae52fd38 am: 0854507c
am: 90fc141b

Change-Id: I4ffa2885d17b62e1c98d17de6e2bd44e3b461e13
parents 32c97b3f 90fc141b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1665,8 +1665,11 @@ status_t ACodec::configureCodec(
            ALOGE("[%s] storeMetaDataInBuffers (input) failed w/ err %d",
                    mComponentName.c_str(), err);

            if (mOMX->livesLocally(mNode, getpid())) {
                return err;
            }
            ALOGI("ignoring failure to use internal MediaCodec key.");
        }
        // For this specific case we could be using camera source even if storeMetaDataInBuffers
        // returns Gralloc source. Pretend that we are; this will force us to use nBufferSize.
        if (mInputMetadataType == kMetadataBufferTypeGrallocSource) {