From 2afc356911a1d569152dfdc45949c9803c40b6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 13 Sep 2022 21:40:50 +0200 Subject: [PATCH] capture use SetScreenSize. --- server/internal/capture/manager.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/internal/capture/manager.go b/server/internal/capture/manager.go index 0eae7da1..50930285 100644 --- a/server/internal/capture/manager.go +++ b/server/internal/capture/manager.go @@ -5,7 +5,6 @@ import ( "m1k1o/neko/internal/capture/gst" "m1k1o/neko/internal/config" - "m1k1o/neko/internal/desktop/xorg" "m1k1o/neko/internal/types" "github.com/kataras/go-events" @@ -170,7 +169,11 @@ func (manager *CaptureManagerCtx) ChangeResolution(width int, height int, rate i manager.logger.Info().Msg("starting video pipeline...") }() - if err := xorg.ChangeScreenSize(width, height, rate); err != nil { + if err := manager.desktop.SetScreenSize(types.ScreenSize{ + Width: width, + Height: height, + Rate: rate, + }); err != nil { return err }