1
0
Fork 0
forked from External/mediamtx

update gortsplib (#1671)

This commit is contained in:
Alessandro Ros 2023-04-09 17:11:54 +02:00 committed by GitHub
parent e426810455
commit efb6060b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 12 deletions

View file

@ -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())
},
}