From 173a708acf1e70ba802c58615d5beaea004dd5e2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 14 Oct 2023 18:18:14 -0400 Subject: [PATCH] 100% match --- LEGO1/mxomni.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LEGO1/mxomni.cpp b/LEGO1/mxomni.cpp index 6a74b420..88e4bf02 100644 --- a/LEGO1/mxomni.cpp +++ b/LEGO1/mxomni.cpp @@ -221,13 +221,13 @@ MxResult MxOmni::Create(MxOmniCreateParam &p) if (m_notificationManager->Create(100, 0) != SUCCESS) goto done; } + else + goto done; } if (p.CreateFlags().CreateStreamer()) { - if (m_streamer = new MxStreamer()) { - if (m_streamer->Create() != SUCCESS) - goto done; - } + if (!(m_streamer = new MxStreamer()) || m_streamer->Create() != SUCCESS) + goto done; } if (p.CreateFlags().CreateVideoManager()) {