Skip to content

Commit

Permalink
dont restart if previously was not set! #110
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Jul 12, 2023
1 parent 4c03132 commit 25403cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion machinery/src/components/Kerberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ func RunAgent(configDirectory string, configuration *models.Configuration, commu
}

if cameraSettings.RTSP != rtspUrl || cameraSettings.SubRTSP != subRtspUrl || cameraSettings.Width != width || cameraSettings.Height != height || cameraSettings.Num != num || cameraSettings.Denum != denum || cameraSettings.Codec != videoStream.(av.VideoCodecData).Type() {
if cameraSettings.Initialized {

if cameraSettings.RTSP != "" && cameraSettings.SubRTSP != "" && cameraSettings.Initialized {
decoder.Close()
if subStreamEnabled {
subDecoder.Close()
Expand Down

0 comments on commit 25403cc

Please sign in to comment.