Commit 464869cf by eguven Committed by Oliver Woodman

Fix DASH duration.

As multi period DASH isn't supported yet use the duration of the first period only.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=127086808
parent 4e86c553
...@@ -277,7 +277,7 @@ public final class DashMediaSource implements MediaPeriod, MediaSource, ...@@ -277,7 +277,7 @@ public final class DashMediaSource implements MediaPeriod, MediaSource,
manifestUri = manifest.location; manifestUri = manifest.location;
} }
if (!prepared) { if (!prepared) {
durationUs = manifest.dynamic ? C.UNSET_TIME_US : manifest.duration * 1000; durationUs = manifest.dynamic ? C.UNSET_TIME_US : manifest.getPeriodDuration(0) * 1000;
buildTrackGroups(manifest); buildTrackGroups(manifest);
if (manifest.utcTiming != null) { if (manifest.utcTiming != null) {
resolveUtcTimingElement(manifest.utcTiming); resolveUtcTimingElement(manifest.utcTiming);
......
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