xorg.ChangeScreenSize error handling
This commit is contained in:
parent
fe90a9555f
commit
4b378550c2
@ -102,11 +102,9 @@ func (manager *RemoteManager) StartStream() {
|
|||||||
|
|
||||||
if !xorg.ValidScreenSize(manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate) {
|
if !xorg.ValidScreenSize(manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate) {
|
||||||
manager.logger.Warn().Msgf("invalid screen option %dx%d@%d", manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate)
|
manager.logger.Warn().Msgf("invalid screen option %dx%d@%d", manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate)
|
||||||
} else {
|
} else if err := xorg.ChangeScreenSize(manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate); err != nil {
|
||||||
if err := xorg.ChangeScreenSize(manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate); err != nil {
|
|
||||||
manager.logger.Warn().Err(err).Msg("unable to change screen size")
|
manager.logger.Warn().Err(err).Msg("unable to change screen size")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
manager.createPipelines()
|
manager.createPipelines()
|
||||||
manager.video.Start()
|
manager.video.Start()
|
||||||
|
Reference in New Issue
Block a user