Commit ea21f72c by tonihei Committed by Oliver Woodman

Allow reusing ExtractorMediaSource.

GitHub:#3498

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=183378776
parent e6d25a9c
......@@ -325,7 +325,6 @@ public final class ExtractorMediaSource implements MediaSource, ExtractorMediaPe
@Override
public void prepareSource(ExoPlayer player, boolean isTopLevelSource, Listener listener) {
Assertions.checkState(sourceListener == null, MEDIA_SOURCE_REUSED_ERROR_MESSAGE);
sourceListener = listener;
notifySourceInfoRefreshed(C.TIME_UNSET, false);
}
......@@ -357,7 +356,7 @@ public final class ExtractorMediaSource implements MediaSource, ExtractorMediaPe
@Override
public void releaseSource() {
// Do nothing.
sourceListener = null;
}
// ExtractorMediaPeriod.Listener implementation.
......
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