port more examples over to new generated bindings

plugins not yet working, examples mostly untested
This commit is contained in:
RSWilli
2025-09-16 22:36:07 +02:00
parent 9fb9393213
commit 846581a077
37 changed files with 364 additions and 3196 deletions

View File

@@ -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")
}