Commit 5d70b9e0 by olly Committed by Oliver Woodman

Partialy revert "Make ExtractorMediaSource timeline dynamic until duration is set"

This change broke playback through playlists.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176764830
parent 874d1be8
......@@ -327,11 +327,9 @@ public final class ExtractorMediaSource implements MediaSource, ExtractorMediaPe
private void notifySourceInfoRefreshed(long durationUs, boolean isSeekable) {
timelineDurationUs = durationUs;
timelineIsSeekable = isSeekable;
// If the duration is currently unset, we expect to be able to update the window when its
// duration eventually becomes known.
boolean isDynamic = timelineDurationUs == C.TIME_UNSET;
// TODO: Make timeline dynamic until its duration is known. This is non-trivial. See b/69703223.
sourceListener.onSourceInfoRefreshed(this,
new SinglePeriodTimeline(timelineDurationUs, timelineIsSeekable, isDynamic), null);
new SinglePeriodTimeline(timelineDurationUs, timelineIsSeekable, false), null);
}
}
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