Skip to content

Commit

Permalink
fix: StreamURI values not parsed in external rtsp mode (#295)
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Casagrande <[email protected]>
  • Loading branch information
ajcasagrande authored Sep 27, 2023
1 parent e4e6eae commit e7b533f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ func (d *Driver) Initialize(sdk interfaces.DeviceServiceSDK) error {
d.lc.Errorf("failed to register secret update callback: %v", err)
}

if d.rtspServerMode != RTSPServerModeInternal {
return nil // nothing left to do
}

rtspServerHostName, ok := d.ds.DriverConfigs()[RtspServerHostName]
if !ok {
rtspServerHostName = DefaultRtspServerHostName
Expand All @@ -135,6 +131,10 @@ func (d *Driver) Initialize(sdk interfaces.DeviceServiceSDK) error {
d.lc.Infof("RTSP TCP port: %s", rtspPort)
d.rtspTcpPort = rtspPort

if d.rtspServerMode != RTSPServerModeInternal {
return nil // nothing left to do
}

// check to see if rtsp-simple-server file/binary exists
rtspExecutable := d.ds.DriverConfigs()[RtspServerExe]
if rtspExecutable == "" {
Expand Down

0 comments on commit e7b533f

Please sign in to comment.