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

Commit 996be3ee authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Block allocateBackup if the node is not secure node.

Bug: 63522818
Test: cts-tradefed run cts -p android.media & YT & Play Movies & Cast
Change-Id: I2be2748ecabf49d7842a90676e68978bf0c56b71
Merged-In: I2be2748ecabf49d7842a90676e68978bf0c56b71
parent 0d7d0ab1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -927,6 +927,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;