mirror of
https://github.com/androidx/media.git
synced 2025-05-16 20:19:57 +08: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
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user