mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-04 23:52:55 +08:00
major rework of reference handling
This commit is contained in:
@@ -28,7 +28,7 @@ func ToGstPushSrc(obj interface{}) *GstPushSrc {
|
||||
|
||||
// wrapGstPushSrc wraps the given unsafe.Pointer in a GstPushSrc instance.
|
||||
func wrapGstPushSrc(obj *C.GstPushSrc) *GstPushSrc {
|
||||
return &GstPushSrc{&GstBaseSrc{gst.FromGstElementUnsafe(unsafe.Pointer(obj))}}
|
||||
return &GstPushSrc{&GstBaseSrc{gst.FromGstElementUnsafeNone(unsafe.Pointer(obj))}}
|
||||
}
|
||||
|
||||
// Instance returns the underlying C GstBaseSrc instance
|
||||
|
Reference in New Issue
Block a user