docs: improve documentations
This commit is contained in:
parent
ed2497cbf1
commit
2cbefdee7c
6 changed files with 29 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import "sync"
|
|||
// AVLogLevel defines the ffmpeg threshold for dumping information to stderr.
|
||||
type AVLogLevel int
|
||||
|
||||
// Possible values for AVLogLevel.
|
||||
// AVLogLevel enum
|
||||
const (
|
||||
AVLogQuiet AVLogLevel = (iota - 1) * 8
|
||||
AVLogPanic
|
||||
|
|
@ -35,6 +35,7 @@ func SetFFmpegLogLevel(logLevel AVLogLevel) {
|
|||
|
||||
type LoggingHandlerFunction func(messageLevel AVLogLevel, message string)
|
||||
|
||||
// SetLogging set AV logging handler
|
||||
func SetLogging(handler LoggingHandlerFunction) {
|
||||
onceLogging.Do(func() {
|
||||
C.goavLogSetup()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue