Commit 1695e2ac by andrewlewis Committed by Oliver Woodman

Fix DASH period index calculation.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130612920
parent b2a28a14
...@@ -348,7 +348,7 @@ public final class DashMediaSource implements MediaSource { ...@@ -348,7 +348,7 @@ public final class DashMediaSource implements MediaSource {
private void processManifest() { private void processManifest() {
// Update any periods. // Update any periods.
for (int i = 0; i < periodsById.size(); i++) { for (int i = 0; i < periodsById.size(); i++) {
periodsById.valueAt(i).updateManifest(manifest, firstPeriodId + periodsById.keyAt(i)); periodsById.valueAt(i).updateManifest(manifest, periodsById.keyAt(i) - firstPeriodId);
} }
// Remove any pending simulated updates. // Remove any pending simulated updates.
handler.removeCallbacks(simulateManifestRefreshRunnable); handler.removeCallbacks(simulateManifestRefreshRunnable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment