From 94b71a0868ecceee5ad9f505b2b4bc6f78e27e65 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Mon, 20 Nov 2023 09:57:55 +0100 Subject: [PATCH] fix: enabling backchannel on the mainstream --- machinery/src/components/Kerberos.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/machinery/src/components/Kerberos.go b/machinery/src/components/Kerberos.go index a10d541..2b2c794 100644 --- a/machinery/src/components/Kerberos.go +++ b/machinery/src/components/Kerberos.go @@ -121,10 +121,6 @@ func RunAgent(configDirectory string, configuration *models.Configuration, commu // Establishing the camera connection without backchannel if no substream rtspUrl := config.Capture.IPCamera.RTSP withBackChannel := true - subRtspUrl := config.Capture.IPCamera.SubRTSP - if subRtspUrl != "" && subRtspUrl != rtspUrl { - withBackChannel = false - } infile, streams, err := capture.OpenRTSP(context.Background(), rtspUrl, withBackChannel) // We will initialise the camera settings object @@ -162,7 +158,8 @@ func RunAgent(configDirectory string, configuration *models.Configuration, commu subStreamEnabled := false subRtspUrl := config.Capture.IPCamera.SubRTSP if subRtspUrl != "" && subRtspUrl != rtspUrl { - subInfile, subStreams, err = capture.OpenRTSP(context.Background(), subRtspUrl, true) // We'll try to enable backchannel for the substream. + withBackChannel := false + subInfile, subStreams, err = capture.OpenRTSP(context.Background(), subRtspUrl, withBackChannel) // We'll try to enable backchannel for the substream. if err == nil { log.Log.Info("RunAgent: opened RTSP sub stream " + subRtspUrl) subStreamEnabled = true