always start pipelines with !.

This commit is contained in:
Miroslav Šedivý 2021-03-29 22:59:07 +02:00
parent d8c031af4d
commit 051ab9f426
2 changed files with 3 additions and 4 deletions

View File

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

View File

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