mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
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:
parent
a7dff14d3c
commit
62bdb1b93a
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue