mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix DASH period index calculation.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130612920
This commit is contained in:
parent
b2a28a140c
commit
1695e2ac48
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue