From 051ab9f4268c2f02aa63948c8073eb7220e273a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 29 Mar 2021 22:59:07 +0200 Subject: [PATCH] always start pipelines with !. --- internal/capture/manager.go | 3 +-- internal/types/capture.go | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/capture/manager.go b/internal/capture/manager.go index 6b6c8b5d..c59702e8 100644 --- a/internal/capture/manager.go +++ b/internal/capture/manager.go @@ -73,8 +73,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt return fmt.Sprintf( "ximagesrc display-name=%s show-pointer=false use-damage=false "+ - "! %s "+ - "! appsink name=appsink", config.Display, pipeline, + "%s ! appsink name=appsink", config.Display, pipeline, ) } diff --git a/internal/types/capture.go b/internal/types/capture.go index 4cf3c337..b80ec2fc 100644 --- a/internal/types/capture.go +++ b/internal/types/capture.go @@ -90,7 +90,7 @@ func (config *VideoConfig) GetPipeline(screen ScreenSize) (string, error) { } // get fps pipeline - fpsPipeline := "video/x-raw ! videoconvert ! queue" + fpsPipeline := "! video/x-raw ! videoconvert ! queue" if config.Fps != "" { var err error val, err := gval.Evaluate(config.Fps, values, language...) @@ -100,7 +100,7 @@ func (config *VideoConfig) GetPipeline(screen ScreenSize) (string, error) { if val != nil { // TODO: To fraction. - fpsPipeline = fmt.Sprintf("video/x-raw,framerate=%v ! videoconvert ! queue", val) + fpsPipeline = fmt.Sprintf("! video/x-raw,framerate=%v ! videoconvert ! queue", val) } }