feat(ffmpeg): logging callback handler

This commit is contained in:
Adrian Shum 2022-09-11 11:04:08 +08:00 committed by GitHub
parent f11d2b351c
commit 57541418b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 1 deletions

View file

@ -52,3 +52,8 @@ func goInterrupt(opaque unsafe.Pointer) C.int {
}
return 0
}
//export goAVLoggingHandler
func goAVLoggingHandler(level C.int, cstr *C.char) {
log(AVLogLevel(level), C.GoString(cstr))
}