Use common logging init functions (#633)

* Use common logging init functions

* update protocol commit

* fix tests
This commit is contained in:
David Zhao
2022-04-20 00:15:11 -07:00
committed by GitHub
parent 431069af95
commit b821a0997d
18 changed files with 59 additions and 81 deletions
+3 -3
View File
@@ -99,14 +99,14 @@ type Options struct {
// NewBuffer constructs a new Buffer
func NewBuffer(ssrc uint32, vp, ap *sync.Pool) *Buffer {
logger := logger.Logger(logger.GetLogger()) // will be reset with correct context via SetLogger
l := logger.GetDefaultLogger() // will be reset with correct context via SetLogger
b := &Buffer{
mediaSSRC: ssrc,
videoPool: vp,
audioPool: ap,
pliThrottle: int64(500 * time.Millisecond),
logger: logger,
callbacksQueue: utils.NewOpsQueue(logger, "sfu-buffer", 50),
logger: l,
callbacksQueue: utils.NewOpsQueue(l, "sfu-buffer", 50),
}
b.extPackets.SetMinCapacity(7)
return b