mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-07 17:00:54 +08:00
Merge plugin experimentation branch - GstBaseSrcs can now be implemented via the bindings but with very limited functionality still
This commit is contained in:
@@ -111,3 +111,13 @@ func glistToStreamSlice(glist *C.GList) []*Stream {
|
||||
})
|
||||
return out
|
||||
}
|
||||
|
||||
func glistToPadTemplateSlice(glist *C.GList) []*PadTemplate {
|
||||
l := glib.WrapList(uintptr(unsafe.Pointer(&glist)))
|
||||
out := make([]*PadTemplate, 0)
|
||||
l.FreeFull(func(item interface{}) {
|
||||
tmpl := item.(*C.GstPadTemplate)
|
||||
out = append(out, wrapPadTemplate(toGObject(unsafe.Pointer(tmpl))))
|
||||
})
|
||||
return out
|
||||
}
|
||||
|
Reference in New Issue
Block a user