diff --git a/library/core/src/main/java/com/google/android/exoplayer2/source/ExtractorMediaSource.java b/library/core/src/main/java/com/google/android/exoplayer2/source/ExtractorMediaSource.java index 20e789821d..288bc011a4 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/source/ExtractorMediaSource.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/source/ExtractorMediaSource.java @@ -319,11 +319,12 @@ public final class ExtractorMediaSource extends BaseMediaSource this.eventDispatcher = new EventDispatcher(eventHandler, eventListener); this.customCacheKey = customCacheKey; this.continueLoadingCheckIntervalBytes = continueLoadingCheckIntervalBytes; + this.timelineDurationUs = C.TIME_UNSET; } @Override public void prepareSourceInternal(ExoPlayer player, boolean isTopLevelSource) { - notifySourceInfoRefreshed(C.TIME_UNSET, false); + notifySourceInfoRefreshed(timelineDurationUs, /* isSeekable= */ false); } @Override