Skip to content

Commit

Permalink
Fix retry crash in edge case
Browse files Browse the repository at this point in the history
Configuration of retry currently fails if all of the
following are true, which is highly unlikely but does
occur in the ref'd issue.

1. Loading/extraction fails
2. Neither length of stream of a seek map is known
3. At least one track has been output by the extractor

Issue: #1899

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=135228687
  • Loading branch information
ojw28 committed Oct 5, 2016
1 parent 1b90b7c commit 89c4380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ private void configureRetry(ExtractingLoadable loadable) {
lastSeekPositionUs = 0;
notifyReset = prepared;
for (int i = 0; i < sampleQueues.length; i++) {
sampleQueues[i].reset(trackEnabledStates[i]);
sampleQueues[i].reset(!prepared || trackEnabledStates[i]);
}
loadable.setLoadPosition(0);
}
Expand Down

0 comments on commit 89c4380

Please sign in to comment.