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

Commit c3ed9d0c authored by mspector@google.com's avatar mspector@google.com
Browse files

resolve merge conflicts of a913e76d to nyc-dev

Change-Id: I5612bdd49f175276aa8a44db8ba74e8452656e50
parents 408d0b67 a913e76d
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -863,9 +863,13 @@ status_t BnOMX::onTransact(
            OMX_U32 port_index = data.readInt32();

            sp<IGraphicBufferProducer> bufferProducer;
            MetadataBufferType type;
            MetadataBufferType type = kMetadataBufferTypeInvalid;
            status_t err = createInputSurface(node, port_index, &bufferProducer, &type);

            if ((err != OK) && (type == kMetadataBufferTypeInvalid)) {
                android_errorWriteLog(0x534e4554, "26324358");
            }

            reply->writeInt32(type);
            reply->writeInt32(err);

@@ -906,11 +910,16 @@ status_t BnOMX::onTransact(
                    interface_cast<IGraphicBufferConsumer>(data.readStrongBinder());

            MetadataBufferType type = kMetadataBufferTypeInvalid;

            status_t err = INVALID_OPERATION;
            if (bufferConsumer == NULL) {
                ALOGE("b/26392700");
            } else {
                err = setInputSurface(node, port_index, bufferConsumer, &type);

                if ((err != OK) && (type == kMetadataBufferTypeInvalid)) {
                   android_errorWriteLog(0x534e4554, "26324358");
                }
            }

            reply->writeInt32(type);
@@ -938,8 +947,13 @@ status_t BnOMX::onTransact(
            OMX_U32 port_index = data.readInt32();
            OMX_BOOL enable = (OMX_BOOL)data.readInt32();

            MetadataBufferType type;
            MetadataBufferType type = kMetadataBufferTypeInvalid;
            status_t err = storeMetaDataInBuffers(node, port_index, enable, &type);

            if ((err != OK) && (type == kMetadataBufferTypeInvalid)) {
                android_errorWriteLog(0x534e4554, "26324358");
            }

            reply->writeInt32(type);
            reply->writeInt32(err);