From 21466389c2f0ab4312945d538f1d568cd18b67cc Mon Sep 17 00:00:00 2001 From: sieman216485 <119700542+sieman216485@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:17:20 -0500 Subject: [PATCH] fix wrong variable name the variable "sgie1" in if statement is wrong and it should be "sgie2" --- apps/runtime_source_add_delete/deepstream_rt_src_add_del.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/runtime_source_add_delete/deepstream_rt_src_add_del.py b/apps/runtime_source_add_delete/deepstream_rt_src_add_del.py index c3dc1f6..5af0fd8 100644 --- a/apps/runtime_source_add_delete/deepstream_rt_src_add_del.py +++ b/apps/runtime_source_add_delete/deepstream_rt_src_add_del.py @@ -395,7 +395,7 @@ def main(args): sys.stderr.write(" Unable to make sgie1 \n") sgie2 = Gst.ElementFactory.make("nvinfer", "secondary2-nvinference-engine") - if not sgie1: + if not sgie2: sys.stderr.write(" Unable to make sgie2 \n")