forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(StreamingEngine): clear lastInitSegmentReference when clearing bu…
…ffer When toggling between two text streams quickly(for example en -> fr -> en), the mediaState's lastInitSegmentReference may not get updated to 'fr' before switching back to 'en'. That way, in initSourceBuffer_(), the initSegmentReference is considered as fetched and appended, but the buffer was in fact cleared. Setting lastInitSegmentReference to null every time we clear the buffer, and fetch and append the initSegmentReference with the new update. b/168253400 Change-Id: Id6378bdadd34f93a2a2f54ac84d82cf39b89716e
- Loading branch information
1 parent
1e74fc2
commit e40cdd0
Showing
2 changed files
with
37 additions
and
2 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