Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben committed Oct 6, 2023
1 parent 1e5b464 commit 3959ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/output_synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (os *OutputSynchronizer) getWaitDuration(pts time.Duration, firstSampleSent

waitTime := mediaTime.Sub(now)

if os.zeroTime.IsZero() || (waitTime < leeway && firstSampleSent) {
if os.zeroTime.IsZero() || (waitTime < -leeway && firstSampleSent) {
// Reset zeroTime if the earliest track is late
os.zeroTime = now.Add(-pts)
waitTime = 0
Expand Down

0 comments on commit 3959ca3

Please sign in to comment.