forked from External/mediamtx
update gortsplib (#1671)
This commit is contained in:
parent
e426810455
commit
efb6060b45
6 changed files with 29 additions and 12 deletions
|
|
@ -88,8 +88,14 @@ func (s *rtspSource) run(ctx context.Context, cnf *conf.PathConf, reloadConf cha
|
|||
OnResponse: func(res *base.Response) {
|
||||
s.Log(logger.Debug, "s->c %v", res)
|
||||
},
|
||||
Log: func(level gortsplib.LogLevel, format string, args ...interface{}) {
|
||||
s.Log(logger.Warn, format, args...)
|
||||
OnTransportSwitch: func(err error) {
|
||||
s.Log(logger.Warn, err.Error())
|
||||
},
|
||||
OnPacketLost: func(err error) {
|
||||
s.Log(logger.Warn, err.Error())
|
||||
},
|
||||
OnDecodeError: func(err error) {
|
||||
s.Log(logger.Warn, err.Error())
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue