Ignore lagging layer switches. (#1948)

This commit is contained in:
Raja Subramanian
2023-08-09 17:42:33 +05:30
committed by GitHub
parent c14c58b4ae
commit 0e9ec9a21e
5 changed files with 66 additions and 21 deletions
+3 -3
View File
@@ -101,7 +101,7 @@ type Buffer struct {
// callbacks
onClose func()
onRtcpFeedback func([]rtcp.Packet)
onRtcpSenderReport func(*RTCPSenderReportData)
onRtcpSenderReport func()
onFpsChanged func()
onFinalRtpStats func(*RTPStats)
@@ -675,7 +675,7 @@ func (b *Buffer) SetSenderReportData(rtpTime uint32, ntpTime uint64) {
b.RUnlock()
if b.onRtcpSenderReport != nil {
b.onRtcpSenderReport(srData)
b.onRtcpSenderReport()
}
}
@@ -729,7 +729,7 @@ func (b *Buffer) OnRtcpFeedback(fn func(fb []rtcp.Packet)) {
b.onRtcpFeedback = fn
}
func (b *Buffer) OnRtcpSenderReport(fn func(srData *RTCPSenderReportData)) {
func (b *Buffer) OnRtcpSenderReport(fn func()) {
b.onRtcpSenderReport = fn
}