mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-07 00:43:29 +08:00
add comment, remove _
This commit is contained in:
@@ -245,14 +245,14 @@ func goGlobalPluginInit(plugin *C.GstPlugin) C.gboolean {
|
|||||||
|
|
||||||
//export goLogFunction
|
//export goLogFunction
|
||||||
func goLogFunction(
|
func goLogFunction(
|
||||||
_ *C.GstDebugCategory,
|
category *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,
|
||||||
_ C.gpointer,
|
userData C.gpointer,
|
||||||
) {
|
) {
|
||||||
logFnMu.RLock()
|
logFnMu.RLock()
|
||||||
f := customLogFunction
|
f := customLogFunction
|
||||||
|
@@ -203,6 +203,8 @@ var (
|
|||||||
customLogFunction LogFunction
|
customLogFunction LogFunction
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// SetLogFunction is used to replace gstreamer's default logging function.
|
||||||
|
// Setting to nil will revert to the default logging function.
|
||||||
func SetLogFunction(f LogFunction) {
|
func SetLogFunction(f LogFunction) {
|
||||||
logFnMu.Lock()
|
logFnMu.Lock()
|
||||||
defer logFnMu.Unlock()
|
defer logFnMu.Unlock()
|
||||||
|
Reference in New Issue
Block a user