From 6a3da898a36dfca3f88d92fb0280ca6eb2cad64e Mon Sep 17 00:00:00 2001 From: tinyzimmer <38474291+tinyzimmer@users.noreply.github.com> Date: Wed, 7 Oct 2020 11:50:38 +0300 Subject: [PATCH] cleanup appsrc example --- examples/appsrc/main.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/appsrc/main.go b/examples/appsrc/main.go index 8ea155d..d899b09 100644 --- a/examples/appsrc/main.go +++ b/examples/appsrc/main.go @@ -38,11 +38,6 @@ func createPipeline() (*gst.Pipeline, error) { // Get the app sourrce from the first element returned src := app.SrcFromElement(elems[0]) - // We are instructing downstream elements that we are producing raw signed 16-bit integers. - src.SetCaps(gst.NewCapsFromString( - "audio/x-raw, format=S16LE, layout=interleaved, channels=1, rate=44100", - )) - // Specify the format we want to provide as application into the pipeline // by creating a video info with the given format and creating caps from it for the appsrc element. videoInfo := video.NewInfo().