major rework of reference handling

This commit is contained in:
Avi Zimmerman
2021-01-19 00:18:30 +02:00
parent 63a53be42a
commit 1f7d60b390
79 changed files with 1239 additions and 800 deletions

View File

@@ -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.