Fix log marshal error (#2295)

This commit is contained in:
cnderrauber
2023-12-06 00:08:48 +08:00
committed by GitHub
parent d4c4bc1100
commit e1cc9d6b3c
4 changed files with 7 additions and 7 deletions
+2 -3
View File
@@ -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