Commit 62bdb1b9 by olly Committed by Oliver Woodman

Fix failure when a seek is performed with no enabled tracks

This issue affects ExtractorMediaSource only. We shouldn't
start loading in the case that we're prepared and have no
enabled tracks, since there's nothing that we need to load.
This was causing an assertion failure in startLoading.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=140030650
parent a7dff14d
......@@ -231,7 +231,7 @@ import java.io.IOException;
@Override
public boolean continueLoading(long playbackPositionUs) {
if (loadingFinished) {
if (loadingFinished || (prepared && enabledTrackCount == 0)) {
return false;
}
boolean continuedLoading = loadCondition.open();
......
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