From 79a1c419384a262e73a4815299ca385964fa7170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 29 Jan 2023 18:34:58 +0100 Subject: [PATCH] ensure fps is not 0. --- server/internal/capture/pipelines.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/internal/capture/pipelines.go b/server/internal/capture/pipelines.go index bbe8402c..69cc3760 100644 --- a/server/internal/capture/pipelines.go +++ b/server/internal/capture/pipelines.go @@ -61,6 +61,11 @@ func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc strin return pipelineStr, nil } + // use default fps if not set + if fps == 0 { + fps = 25 + } + switch rtpCodec.Name { case codec.VP8().Name: if hwenc == "VAAPI" {