Skip to content

Commit

Permalink
Do not send empty NACK packets
Browse files Browse the repository at this point in the history
  • Loading branch information
adriancable committed Oct 16, 2023
1 parent 69a58bb commit e4eb151
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/nack/generator_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ func (n *GeneratorInterceptor) loop(rtcpWriter interceptor.RTCPWriter) {
}
}

if len(filteredMissing) == 0 {
continue
}

if _, err := rtcpWriter.Write([]rtcp.Packet{nack}, interceptor.Attributes{}); err != nil {
n.log.Warnf("failed sending nack: %+v", err)
}
Expand Down

0 comments on commit e4eb151

Please sign in to comment.