mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-22 07:20:15 +08:00
more vmethod ref counting fixes
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user