mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 16:06:55 +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
|
// Get the app sourrce from the first element returned
|
||||||
src := app.SrcFromElement(elems[0])
|
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
|
// 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.
|
// by creating a video info with the given format and creating caps from it for the appsrc element.
|
||||||
videoInfo := video.NewInfo().
|
videoInfo := video.NewInfo().
|
||||||
|
Reference in New Issue
Block a user