mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 16:36:51 +08:00
major move of all glib specific bindings and extendable objects from go runtime to go-glib package
This commit is contained in:
@@ -57,7 +57,7 @@ import (
|
||||
|
||||
var (
|
||||
// ExtendsBaseSrc is an Extendable for extending a GstBaseSrc
|
||||
ExtendsBaseSrc gst.Extendable = &extendsBaseSrc{parent: gst.ExtendsElement}
|
||||
ExtendsBaseSrc glib.Extendable = &extendsBaseSrc{parent: gst.ExtendsElement}
|
||||
)
|
||||
|
||||
// GstBaseSrcImpl is the documented interface for an element extending a GstBaseSrc. It does not have to
|
||||
@@ -110,7 +110,7 @@ type GstBaseSrcImpl interface {
|
||||
Fill(self *GstBaseSrc, offset uint64, size uint, buffer *gst.Buffer) gst.FlowReturn
|
||||
}
|
||||
|
||||
type extendsBaseSrc struct{ parent gst.Extendable }
|
||||
type extendsBaseSrc struct{ parent glib.Extendable }
|
||||
|
||||
func (e *extendsBaseSrc) Type() glib.Type { return glib.Type(C.gst_base_src_get_type()) }
|
||||
func (e *extendsBaseSrc) ClassSize() int64 { return int64(C.sizeof_GstBaseSrcClass) }
|
||||
@@ -118,7 +118,7 @@ func (e *extendsBaseSrc) InstanceSize() int64 { return int64(C.sizeof_GstBaseSrc
|
||||
|
||||
// InitClass iterates the methods provided by the element and overrides any provided
|
||||
// in the virtual methods.
|
||||
func (e *extendsBaseSrc) InitClass(klass unsafe.Pointer, elem gst.GoElement) {
|
||||
func (e *extendsBaseSrc) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) {
|
||||
e.parent.InitClass(klass, elem)
|
||||
|
||||
class := C.toGstBaseSrcClass(klass)
|
||||
|
Reference in New Issue
Block a user