mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 16:36:51 +08:00
use type alias
This commit is contained in:
@@ -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
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user