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

Commit 6971eedf authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge "Don't allow using or allocating a buffer after the first state...

Merge "Don't allow using or allocating a buffer after the first state transition" into oc-dev am: c24deb62
am: 10d17fdd

Change-Id: I54052404d2d0ee1755c9fb5cc379a9046f66868e
parents 31775190 10d17fdd
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1033,6 +1033,11 @@ status_t OMXNodeInstance::useBuffer(
    }

    Mutex::Autolock autoLock(mLock);
    if (!mSailed) {
        ALOGE("b/35467458");
        android_errorWriteLog(0x534e4554, "35467458");
        return BAD_VALUE;
    }

    switch (omxBuffer.mBufferType) {
        case OMXBuffer::kBufferTypePreset:
@@ -1470,6 +1475,11 @@ status_t OMXNodeInstance::allocateSecureBuffer(

    Mutex::Autolock autoLock(mLock);

    if (!mSailed) {
        ALOGE("b/35467458");
        android_errorWriteLog(0x534e4554, "35467458");
        return BAD_VALUE;
    }
    BufferMeta *buffer_meta = new BufferMeta(portIndex);

    OMX_BUFFERHEADERTYPE *header;