Commit 050b0b66 by olly Committed by Oliver Woodman

Fix starting playback from t!=0

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=118032818
parent f09b86a1
...@@ -416,7 +416,7 @@ public final class ExtractorSampleSource implements SampleSource, ExtractorOutpu ...@@ -416,7 +416,7 @@ public final class ExtractorSampleSource implements SampleSource, ExtractorOutpu
clearState(); clearState();
allocator.trim(0); allocator.trim(0);
} }
} else if (!isFirstTrackSelection && newTracksSelected) { } else if (isFirstTrackSelection ? positionUs != 0 : newTracksSelected) {
seekToInternal(positionUs); seekToInternal(positionUs);
} }
} }
......
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