diff --git a/server/internal/config/capture.go b/server/internal/config/capture.go index 0153ba37..0ae7edaa 100644 --- a/server/internal/config/capture.go +++ b/server/internal/config/capture.go @@ -359,7 +359,6 @@ func (s *Capture) Set() { "min-quantizer": "4", "max-quantizer": "20", }, - ShowPointer: viper.GetBool("legacy"), }, } s.VideoIDs = []string{"main"} @@ -469,11 +468,11 @@ func (s *Capture) SetV2() { } else { s.VideoPipelines = map[string]types.VideoConfig{ "main": { - GstPipeline: pipeline, + // Hacky way to disable pointer. + GstPipeline: strings.Replace(pipeline, "show-pointer=true", "show-pointer=false", 1), }, "legacy": { GstPipeline: pipeline, - ShowPointer: true, }, } // we do not add legacy to VideoIDs so that its ignored by bandwidth estimator diff --git a/server/internal/config/capture_pipeline.go b/server/internal/config/capture_pipeline.go index c64c9fef..707288d6 100644 --- a/server/internal/config/capture_pipeline.go +++ b/server/internal/config/capture_pipeline.go @@ -54,7 +54,7 @@ func NewBroadcastPipeline(device string, display string, pipelineSrc string, url } func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc string, fps int16, bitrate uint, hwenc HwEnc) (string, error) { - pipelineStr := " ! appsink name=appsinkvideo" + pipelineStr := " ! appsink name=appsink" // if using custom pipeline if pipelineSrc != "" { @@ -182,7 +182,7 @@ func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc strin } func NewAudioPipeline(rtpCodec codec.RTPCodec, device string, pipelineSrc string, bitrate uint) (string, error) { - pipelineStr := " ! appsink name=appsinkaudio" + pipelineStr := " ! appsink name=appsink" // if using custom pipeline if pipelineSrc != "" {