Commit 23cc1021 by aquilescanta Committed by Oliver Woodman

Move internal HlsSampleStreamWrapper methods under internal methods

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=177462449
parent 3a6b7a34
......@@ -410,24 +410,6 @@ import java.util.Arrays;
}
}
private boolean finishedReadingChunk(HlsMediaChunk chunk) {
int chunkUid = chunk.uid;
int sampleQueueCount = sampleQueues.length;
for (int i = 0; i < sampleQueueCount; i++) {
if (sampleQueuesEnabledStates[i] && sampleQueues[i].peekSourceId() == chunkUid) {
return false;
}
}
return true;
}
private void resetSampleQueues() {
for (SampleQueue sampleQueue : sampleQueues) {
sampleQueue.reset(pendingResetUpstreamFormats);
}
pendingResetUpstreamFormats = false;
}
// SequenceableLoader implementation
@Override
......@@ -650,6 +632,24 @@ import java.util.Arrays;
// Internal methods.
private boolean finishedReadingChunk(HlsMediaChunk chunk) {
int chunkUid = chunk.uid;
int sampleQueueCount = sampleQueues.length;
for (int i = 0; i < sampleQueueCount; i++) {
if (sampleQueuesEnabledStates[i] && sampleQueues[i].peekSourceId() == chunkUid) {
return false;
}
}
return true;
}
private void resetSampleQueues() {
for (SampleQueue sampleQueue : sampleQueues) {
sampleQueue.reset(pendingResetUpstreamFormats);
}
pendingResetUpstreamFormats = false;
}
private void maybeFinishPrepare() {
if (released || prepared || !sampleQueuesBuilt) {
return;
......
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