-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix off-by-one error storing offline content
The final chunk was only being stored when the endTime of the final segment happened to be null. An index with explicit end times for all segments, even on one stream, would trigger this bug. For example, the end time of the final video segment may be null, but the end time of the final audio segment may be equal to the content duration. The stored audio would be missing a chunk, causing the computed stream limit to be too short on playback. This corrects the off-by-one error in the storage code by explicitly signalling when a segment is the last one, rather than checking for a null endTime. Closes #157 Change-Id: Ic99d53b9e2b071409d4d9472b8bc4ae0cf76f940
- Loading branch information
1 parent
419f26a
commit e4d3626
Showing
2 changed files
with
30 additions
and
4 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