Please sign in to comment.
Refactor timing/sleep handling in the scheduler.
The first main change is to use HandleRecordiing() and HandleTuning() to set the sleep time. The previous code used mostly duplicate code in CalcTimeToNextHandleRecordingEvent(). That meant there were two places that needed to be checked/kept in sync when analyzing/fixing timing issues. The next main change is to sleep as long as possible. The previous code would never sleep for longer than 60 seconds, even if it had nothing to do. The last main change is to be more persistent in tyring to apply long preroll when the tuner is initially busy. The previous code didn't specifically try to do this and it was hit and miss whether or not preroll was used in these situations. The rest is various stylistic changes. Fixes #11108
- Loading branch information...
Showing with 151 additions and 185 deletions.
Oops, something went wrong.