mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
capture use SetScreenSize.
This commit is contained in:
parent
4c1c96b163
commit
2afc356911
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user