mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 07:56:51 +08:00
cleanup appsrc example
This commit is contained in:
@@ -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().
|
||||
|
Reference in New Issue
Block a user