Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve A/V sync when playing close to end of in-progress recordings.
MythTV has long had issues quickly achieving stable, A/V sync when playing close to the end of an in-progress recording. This is most easily seen when entering live TV or changing channels. The previous round of changes in this area were an improvement but still leaves cases where there are small stutters every few seconds that never end. This commit attempts to fix that. The main, previous change in this area pauses the audio when video buffering occurs and near the end. The audio is unpaused by the normal, A/V, sync code when it thinks the sync is close enough. This commit tweaks that behavior to keep the audio paused until the video has fully caught up. I've been using this patch for several months with no ill effects so I think it's safe to commit to master. Note that the patch looks bigger than it really is due to the re-ordering of an if statement in MythPlayer::PrebufferEnoughFrames(). That change makes an early return cleaner and simplifies the logic flow. Also note that Music Choice channels still present challenging problems for MythTV. mythplayer is not really designed for content with very, low, video, frame rates. The MusicChoiceEnabled setting still needs to be set to reliably play NC channels. With this change, however, I think it should be easier to automatically detect MC channels without the need of a special setting. That hasn't been done yet, though.
- Loading branch information
Showing
4 changed files
with
122 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters