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

Commit afb20c31 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

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

Even though storing metadata is not supported in MediaCodec.configure and
is only meant to be used by Stagefright recorder, don't fail configure.

Bug: 31986922
Change-Id: Id9f083be6e857e7a0d8d4a74159be5b8894e28be
parent 610a9222
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1066,9 +1066,11 @@ status_t ACodec::configureCodec(
        if (err != OK) {
              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.");
          }
      }

    int32_t prependSPSPPS = 0;