Compare commits

...

2 Commits

Author SHA1 Message Date
Cédric Verstraeten
18ceca7510 Merge pull request #175 from kerberos-io/fix/remote-region-not-properly-calculated
Fix/Remote config / region not properly calculated
2025-04-18 14:06:37 +02:00
Cédric Verstraeten
5a08d1f3de Update main.go 2025-04-18 14:03:23 +02:00

View File

@@ -391,7 +391,8 @@ func HandleRequestConfig(mqttClient mqtt.Client, hubKey string, payload models.P
// We need a fix for the width and height if a substream.
// The ROI requires the width and height of the sub stream.
if configuration.Config.Capture.IPCamera.SubRTSP != "" {
if configuration.Config.Capture.IPCamera.SubRTSP != "" &&
configuration.Config.Capture.IPCamera.SubRTSP != configuration.Config.Capture.IPCamera.RTSP {
deepCopy.Capture.IPCamera.Width = configuration.Config.Capture.IPCamera.SubWidth
deepCopy.Capture.IPCamera.Height = configuration.Config.Capture.IPCamera.SubHeight
}