mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 00:17:00 +08:00
port more examples over to new generated bindings
plugins not yet working, examples mostly untested
This commit is contained in:
@@ -50,13 +50,9 @@ func buildPipeline() (*gst.Pipeline, error) {
|
||||
|
||||
pipeline := gst.NewPipeline("")
|
||||
|
||||
src, ok := gst.ElementFactoryMake("filesrc", "").(*gst.Element)
|
||||
src := gst.ElementFactoryMake("filesrc", "")
|
||||
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("could not create filesource")
|
||||
}
|
||||
|
||||
decodebin, ok := gst.ElementFactoryMake("decodebin", "").(*gst.Bin)
|
||||
decodebin, ok := gst.ElementFactoryMake("decodebin", "").(*gst.Bin) // must cast since we need a weak reference
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("could not create decodebin")
|
||||
}
|
||||
|
Reference in New Issue
Block a user