more vmethod ref counting fixes

This commit is contained in:
Avi Zimmerman
2021-01-20 15:39:17 +02:00
parent 127ca49ef2
commit e6ad9ab977
15 changed files with 502 additions and 338 deletions

View File

@@ -6,8 +6,6 @@ package base
import "C"
import (
"unsafe"
"github.com/tinyzimmer/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst"
)
@@ -26,11 +24,6 @@ func ToGstPushSrc(obj interface{}) *GstPushSrc {
return nil
}
// wrapGstPushSrc wraps the given unsafe.Pointer in a GstPushSrc instance.
func wrapGstPushSrc(obj *C.GstPushSrc) *GstPushSrc {
return &GstPushSrc{&GstBaseSrc{gst.FromGstElementUnsafeNone(unsafe.Pointer(obj))}}
}
// Instance returns the underlying C GstBaseSrc instance
func (g *GstPushSrc) Instance() *C.GstPushSrc {
return C.toGstPushSrc(g.Unsafe())