Skip to content

Commit c723cc6

Browse files
authored
Don't drop dummy packets (#760)
Rely on increasing timestamps instead
1 parent ed02e94 commit c723cc6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/synchronizer/track.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ func (t *TrackSynchronizer) OnSenderReport(f func(drift time.Duration)) {
137137
// dropped while waiting, and a boolean indicating whether the track is ready to
138138
// process samples. After the gate finishes, there is no need to call the API again.
139139
func (t *TrackSynchronizer) PrimeForStart(pkt jitter.ExtPacket) ([]jitter.ExtPacket, int, bool) {
140-
if !t.initialized && len(pkt.Payload) == 0 {
141-
// skip dummy packets until the track is initialized
142-
return nil, 0, false
143-
}
144-
145140
if t.initialized || t.startGate == nil {
146141
if !t.initialized {
147142
t.Initialize(pkt.Packet)

0 commit comments

Comments
 (0)