mirror of
https://github.com/go-gst/go-gst.git
synced 2025-11-01 12:02:34 +08:00
major rework of reference handling
This commit is contained in:
@@ -5,8 +5,6 @@ import "C"
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/tinyzimmer/go-glib/glib"
|
||||
)
|
||||
|
||||
// PluginFeature wraps the C GstPluginFeature.
|
||||
@@ -21,7 +19,7 @@ func (p *PluginFeature) GetPlugin() *Plugin {
|
||||
if plugin == nil {
|
||||
return nil
|
||||
}
|
||||
return wrapPlugin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(plugin))})
|
||||
return FromGstPluginUnsafeFull(unsafe.Pointer(plugin))
|
||||
}
|
||||
|
||||
// GetPluginName returns the name of the plugin that provides this feature.
|
||||
|
||||
Reference in New Issue
Block a user