mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-23 17:27:16 +03:00
Fix invalid assertion in StreamingEngine.
Change-Id: I2f32009e83efa101dff5ebb479da0c48eed79b51
This commit is contained in:
@@ -1528,7 +1528,10 @@ shaka.media.StreamingEngine.prototype.handleStartup_ = function(
|
||||
|
||||
goog.asserts.assert(
|
||||
mediaStates.every(function(ms) {
|
||||
return ms.needPeriodIndex == currentPeriodIndex;
|
||||
// It is possible for one stream (usually text) to buffer the whole
|
||||
// Period and need the next one.
|
||||
return ms.needPeriodIndex == currentPeriodIndex ||
|
||||
ms.needPeriodIndex == currentPeriodIndex + 1;
|
||||
}),
|
||||
logPrefix + ' expected all MediaStates to need same Period');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user