Archived
2
0

capture use SetScreenSize.

This commit is contained in:
Miroslav Šedivý 2022-09-13 21:40:50 +02:00
parent 4c1c96b163
commit 2afc356911

View File

@ -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
}