fix legacy capture pipeline.

This commit is contained in:
Miroslav Šedivý 2024-09-08 23:26:34 +02:00
parent 5c91621223
commit 063fa8821f
2 changed files with 4 additions and 5 deletions

View file

@ -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 != "" {