DescriptionFix an issue that audio and video may run out of sync
This CL fixes 3 issues:
1. In ProcessPendingEvents(), if there is a non-seek pending event, UpdateTimestamps() will not get called.
This is probably the number 1 reason that a/v lose sync.
2. MSP use its internal clock to estimate the current presentation time.
However, hardware may consume data at a different rate.
Passing the current frame position from AudioTrack to MSP so we get a better estimation of the current time.
3. When config change comes, We don't need to reset the clock if audio decoder is not recreated.
BUG=351722
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263754
Patch Set 1 : #
Total comments: 6
Patch Set 2 : addressing comments #
Total comments: 16
Patch Set 3 : addressing wolenetz's comment #
Total comments: 2
Patch Set 4 : adding TODO for pointer comparison #
Total comments: 2
Patch Set 5 : addressing acolwell's comments #
Total comments: 9
Patch Set 6 : addressing acolwell's comments #Messages
Total messages: 19 (0 generated)
|