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

Commit ff286981 authored by Dongwon Kang's avatar Dongwon Kang Committed by android-build-merger
Browse files

Block allocateBackup if the node is not secure node. am: 996be3ee am:...

Block allocateBackup if the node is not secure node. am: 996be3ee am: 2bebd9c7 am: 395ec8c4 am: 238f4318
am: 0a78e485

Change-Id: I75bd01c40825a2f52a3c03d6b3b07c35bb5609e4
parents 6c15ae2a 0a78e485
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1145,6 +1145,13 @@ status_t OMXNodeInstance::allocateBuffer(
        return BAD_VALUE;
    }

    if (!mIsSecure) {
        // This method is used only with secure codecs in this release.
        ALOGE("b/63522818");
        android_errorWriteLog(0x534e4554, "63522818");
        return ERROR_UNSUPPORTED;
    }

    BufferMeta *buffer_meta = new BufferMeta(size, portIndex);

    OMX_BUFFERHEADERTYPE *header;