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

Commit aef546b8 authored by mspector@google.com's avatar mspector@google.com Committed by android-build-merger
Browse files

IOMX.cpp uninitialized pointer in BnOMX::onTransact am: 9d72eb06 am:...

IOMX.cpp uninitialized pointer in BnOMX::onTransact am: 9d72eb06 am: bbcb1f0e am: 6dcf6ba1 am: 35501e45 am: 88b66600 am: 22d12769 am: 7d4d66e6
am: 3c6a1fe7

* commit '3c6a1fe7':
  IOMX.cpp uninitialized pointer in BnOMX::onTransact
parents a913e76d 3c6a1fe7
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -446,7 +446,7 @@ public:
        remote()->transact(CONFIGURE_VIDEO_TUNNEL_MODE, data, &reply);
        remote()->transact(CONFIGURE_VIDEO_TUNNEL_MODE, data, &reply);


        status_t err = reply.readInt32();
        status_t err = reply.readInt32();
        if (sidebandHandle) {
        if (err == OK && sidebandHandle) {
            *sidebandHandle = (native_handle_t *)reply.readNativeHandle();
            *sidebandHandle = (native_handle_t *)reply.readNativeHandle();
        }
        }
        return err;
        return err;
@@ -961,11 +961,13 @@ status_t BnOMX::onTransact(
            OMX_BOOL tunneled = (OMX_BOOL)data.readInt32();
            OMX_BOOL tunneled = (OMX_BOOL)data.readInt32();
            OMX_U32 audio_hw_sync = data.readInt32();
            OMX_U32 audio_hw_sync = data.readInt32();


            native_handle_t *sideband_handle;
            native_handle_t *sideband_handle = NULL;
            status_t err = configureVideoTunnelMode(
            status_t err = configureVideoTunnelMode(
                    node, port_index, tunneled, audio_hw_sync, &sideband_handle);
                    node, port_index, tunneled, audio_hw_sync, &sideband_handle);
            reply->writeInt32(err);
            reply->writeInt32(err);
            if(err == OK){
                reply->writeNativeHandle(sideband_handle);
                reply->writeNativeHandle(sideband_handle);
            }


            return NO_ERROR;
            return NO_ERROR;
        }
        }