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

Commit 14bedfd0 authored by Michael Lane's avatar Michael Lane Committed by Android (Google) Code Review
Browse files

Merge "stagefright: allow secure audio input buffer" into oc-mr1-dev

parents 4dbfc441 cec27969
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -1866,7 +1866,7 @@ status_t ACodec::configureCodec(
            mFlags |= kFlagIsGrallocUsageProtected;
            mFlags |= kFlagPushBlankBuffersToNativeWindowOnShutdown;
        }

    }
    if (mFlags & kFlagIsSecure) {
        // use native_handles for secure input buffers
        err = setPortMode(kPortIndexInput, IOMX::kPortModePresetSecureBuffer);
@@ -1877,7 +1877,6 @@ status_t ACodec::configureCodec(
            err = OK; // ignore error for now
        }
    }
    }
    if (haveNativeWindow) {
        sp<ANativeWindow> nativeWindow =
            static_cast<ANativeWindow *>(static_cast<Surface *>(obj.get()));