mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-07 00:43:29 +08:00
use type alias
This commit is contained in:
@@ -245,14 +245,14 @@ func goGlobalPluginInit(plugin *C.GstPlugin) C.gboolean {
|
|||||||
|
|
||||||
//export goLogFunction
|
//export goLogFunction
|
||||||
func goLogFunction(
|
func goLogFunction(
|
||||||
category *C.GstDebugCategory,
|
_ *C.GstDebugCategory,
|
||||||
level C.GstDebugLevel,
|
level C.GstDebugLevel,
|
||||||
file *C.gchar,
|
file *C.gchar,
|
||||||
function *C.gchar,
|
function *C.gchar,
|
||||||
line C.gint,
|
line C.gint,
|
||||||
object *C.GObject,
|
object *C.GObject,
|
||||||
message *C.GstDebugMessage,
|
message *C.GstDebugMessage,
|
||||||
userData C.gpointer,
|
_ C.gpointer,
|
||||||
) {
|
) {
|
||||||
logFnMu.RLock()
|
logFnMu.RLock()
|
||||||
f := customLogFunction
|
f := customLogFunction
|
||||||
|
@@ -189,7 +189,7 @@ func (d *DebugCategory) LogMemDump(message string, obj ...*Object) {
|
|||||||
d.logDepth(LevelMemDump, message, 2, getLogObj(obj...))
|
d.logDepth(LevelMemDump, message, 2, getLogObj(obj...))
|
||||||
}
|
}
|
||||||
|
|
||||||
type LogFunction func(
|
type LogFunction = func(
|
||||||
level DebugLevel,
|
level DebugLevel,
|
||||||
file string,
|
file string,
|
||||||
function string,
|
function string,
|
||||||
|
Reference in New Issue
Block a user