mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Move internal HlsSampleStreamWrapper methods under internal methods
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177462449
This commit is contained in:
parent
3a6b7a346c
commit
23cc102151
1 changed files with 18 additions and 18 deletions
|
|
@ -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
|
// SequenceableLoader implementation
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -650,6 +632,24 @@ import java.util.Arrays;
|
||||||
|
|
||||||
// Internal methods.
|
// 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() {
|
private void maybeFinishPrepare() {
|
||||||
if (released || prepared || !sampleQueuesBuilt) {
|
if (released || prepared || !sampleQueuesBuilt) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue