This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge to M44: "Fix deferred video underflow if audio underflows first."
Looks like the new video rendering path caught a pre-existing bug with how deferred video underflow is handled \o/ If audio underflowed first, the video renderer's underflow would still be deferred. If a Flush() comes in, the VideoRendererImpl would think it's in the HAVE_NOTHING state and send no update to its buffering state. Once Flush() completed and playback was restarted the renderer would start playback as soon as the audio renderer was ready since the old buffering state for video was have enough. The fix is to never defer video renderer underflow if audio has already underflowed. I've also added a DCHECK() to make it clear that the audio renderer is expected to clear deferred underflow for the video renderer during Flush(). BUG=485324 TEST=new unittest. TBR=xhwang Review URL: https://codereview.chromium.org/1148473003 Cr-Commit-Position: refs/heads/master@{#330463} (cherry picked from commit 32315ab) Review URL: https://codereview.chromium.org/1143223003 Cr-Commit-Position: refs/branch-heads/2403@{#45} Cr-Branched-From: f54b809-refs/heads/master@{#330231}
- Loading branch information
1 parent
a77597f
commit 4bc9cf1
Showing
3 changed files
with
47 additions
and
3 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