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

Commit 4cc3ed57 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "stagefright: allow secure audio input buffer"

parents 28789459 f7005138
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()));