diff --git a/lib/util/periods.js b/lib/util/periods.js index e5b9072ab6..b80b1b6cb5 100644 --- a/lib/util/periods.js +++ b/lib/util/periods.js @@ -730,7 +730,7 @@ shaka.util.PeriodCombiner = class { // in advance. concat() will add them to the output's MetaSegmentIndex. } - if (!outputStream.matchedStreams) { + if (!outputStream.matchedStreams || !outputStream.matchedStreams.length) { // This is not a stream we can build output from, but it may become part // of another output based on another period's stream. return null;