Fix log marshal error (#2295)
This commit is contained in:
@@ -989,9 +989,8 @@ func (d *DownTrack) CloseWithFlush(flush bool) {
|
||||
"mime", d.mime,
|
||||
"ssrc", d.ssrc,
|
||||
// evaluate only if log level matches
|
||||
"stats", func() interface{} {
|
||||
return d.rtpStats.ToString()
|
||||
})
|
||||
"stats", d.rtpStats,
|
||||
)
|
||||
|
||||
d.maxLayerNotifierChMu.Lock()
|
||||
d.maxLayerNotifierChClosed = true
|
||||
|
||||
Reference in New Issue
Block a user