mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
810f09ff1e
The period-flattening algorithm is run even on single-period content if the manifest is dynamic, because we don't know if another period will be added later. As a failsafe, we should create one output per input for single-period content, and we can ensure that no streams are unused by marking an input stream as the "best match" for an output if they share the same ID. That way, even if all other characteristics for two inputs are the same, the input-to-output mapping for single-period content will always be sane. That ID-based logic was missing for text streams. This change corrects that. Closes #2646 Change-Id: I28c6c63d92bcf710ae0072783911f9e66ed78228