diff --git a/gst/cgo_exports.go b/gst/cgo_exports.go index 3b4b9fe..df75ccc 100644 --- a/gst/cgo_exports.go +++ b/gst/cgo_exports.go @@ -245,14 +245,14 @@ func goGlobalPluginInit(plugin *C.GstPlugin) C.gboolean { //export goLogFunction func goLogFunction( - category *C.GstDebugCategory, + _ *C.GstDebugCategory, level C.GstDebugLevel, file *C.gchar, function *C.gchar, line C.gint, object *C.GObject, message *C.GstDebugMessage, - userData C.gpointer, + _ C.gpointer, ) { logFnMu.RLock() f := customLogFunction diff --git a/gst/gst_debug.go b/gst/gst_debug.go index d07fda7..c8bf2fe 100644 --- a/gst/gst_debug.go +++ b/gst/gst_debug.go @@ -189,7 +189,7 @@ func (d *DebugCategory) LogMemDump(message string, obj ...*Object) { d.logDepth(LevelMemDump, message, 2, getLogObj(obj...)) } -type LogFunction func( +type LogFunction = func( level DebugLevel, file string, function string,