-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TextEngine buffered range calculations
This reverts commit c38d4dd, which actually broke text range calculations in v2.3.10, and v2.4.2-v2.4.4. The original commit was meant to account for the period start, but resulted in a double-accounting of presentationTimeOffset. The start and ends times passed into TextEngine's appendBuffer were period-relative, so timestampOffset had already been applied. To avoid further confusion and to fix the original issue the reverted commit tried to address, these have been changed to presentation-relative timestamps. Now the period start and all offsets have been accounted for before the metadata reaches MediaSourceEngine and TextEngine. The tests added in the bad commit have been modified to test for the opposite: that we do not erroneously account for timestamp offset when calculating the buffered ranges for text. Backported to v2.4.x Closes #1562 Change-Id: I9fa7a3f59906c4f3e623f411e48551f86f5c2ff7
- Loading branch information
1 parent
164272c
commit e2438d9
Showing
6 changed files
with
61 additions
and
42 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
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