Skip to content

Commit

Permalink
fix: enabling backchannel on the mainstream
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Nov 20, 2023
1 parent c071057 commit 94b71a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions machinery/src/components/Kerberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 94b71a0

Please sign in to comment.