mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Don't pass chunk list to ChunkSource.disable().
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=114545827
This commit is contained in:
parent
782817d524
commit
362d0400cd
4 changed files with 4 additions and 6 deletions
|
|
@ -205,7 +205,7 @@ public class ChunkSampleSource implements SampleSource, TrackStream, Loader.Call
|
|||
Assertions.checkState(--enabledTrackCount == 0);
|
||||
state = STATE_PREPARED;
|
||||
try {
|
||||
chunkSource.disable(mediaChunks);
|
||||
chunkSource.disable();
|
||||
} finally {
|
||||
loadControl.unregister(this);
|
||||
if (loader.isLoading()) {
|
||||
|
|
|
|||
|
|
@ -135,9 +135,7 @@ public interface ChunkSource {
|
|||
* Disables the source.
|
||||
* <p>
|
||||
* This method should only be called when the source is enabled.
|
||||
*
|
||||
* @param queue A representation of the currently buffered {@link MediaChunk}s.
|
||||
*/
|
||||
void disable(List<? extends MediaChunk> queue);
|
||||
void disable();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ public class DashChunkSource implements ChunkSource {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void disable(List<? extends MediaChunk> queue) {
|
||||
public void disable() {
|
||||
if (enabledFormats.length > 1) {
|
||||
adaptiveFormatEvaluator.disable();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ public class SmoothStreamingChunkSource implements ChunkSource {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void disable(List<? extends MediaChunk> queue) {
|
||||
public void disable() {
|
||||
if (enabledFormats.length > 1) {
|
||||
adaptiveFormatEvaluator.disable();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue