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

Commit c9f3ed90 authored by Dominggoes Isakh's avatar Dominggoes Isakh Committed by LuK1337
Browse files

OMXNodeInstance: More legacy HAL1 fixes after merge of android-7.1.0_r7

Original commit: https://github.com/nitrogen-project/android_frameworks_av/commit/4ec00575cec1514c1272f99a0fd3b1041091446d

Change-Id: I807a23a7e92b70f0d9f3d807636ea4649a413924
parent c1382b7a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -799,7 +799,11 @@ status_t OMXNodeInstance::useBuffer(
    // metadata buffers are not connected cross process
    // use a backup buffer instead of the actual buffer
    BufferMeta *buffer_meta;
#ifdef CAMCORDER_GRALLOC_SOURCE
    bool useBackup = false;
#else
    bool useBackup = mMetadataType[portIndex] != kMetadataBufferTypeInvalid;
#endif
    OMX_U8 *data = static_cast<OMX_U8 *>(params->pointer());
    // allocate backup buffer
    if (useBackup) {