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
This commit is contained in:
olly 2016-11-23 07:34:00 -08:00 committed by Oliver Woodman
parent a7dff14d3c
commit 62bdb1b93a

View file

@ -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();