Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1307546 - Ensure we don't set timers with negative intervals in t…
…o update A/V sync. r=jya Our logic to do A/V sync sets a timer to drop expired frames based on the start time of the next frame in the queue. If the frames in the queue are badly muxed and don't have monotonically increasing start times, we can end up setting a timer with a negative interval. This causes us to reevaluate the frames in the VideoSink's queue immediately, set the same timer again, and so we end up hot-looping. This is a simple low-risk fix that detects when we're about to set a negative interval timer, and instead sets the timer 1/30th of a second in the future. This fix is deliberately low risk, such that it's suitable for uplift. I have an idea how to do this better, but the lower risk this is most suitable for uplift. MozReview-Commit-ID: CDOqJJodx4l
- Loading branch information