Commit 362d0400 by olly Committed by Oliver Woodman

Don't pass chunk list to ChunkSource.disable().

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=114545827
parent 782817d5
...@@ -205,7 +205,7 @@ public class ChunkSampleSource implements SampleSource, TrackStream, Loader.Call ...@@ -205,7 +205,7 @@ public class ChunkSampleSource implements SampleSource, TrackStream, Loader.Call
Assertions.checkState(--enabledTrackCount == 0); Assertions.checkState(--enabledTrackCount == 0);
state = STATE_PREPARED; state = STATE_PREPARED;
try { try {
chunkSource.disable(mediaChunks); chunkSource.disable();
} finally { } finally {
loadControl.unregister(this); loadControl.unregister(this);
if (loader.isLoading()) { if (loader.isLoading()) {
......
...@@ -135,9 +135,7 @@ public interface ChunkSource { ...@@ -135,9 +135,7 @@ public interface ChunkSource {
* Disables the source. * Disables the source.
* <p> * <p>
* This method should only be called when the source is enabled. * 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 { ...@@ -491,7 +491,7 @@ public class DashChunkSource implements ChunkSource {
} }
@Override @Override
public void disable(List<? extends MediaChunk> queue) { public void disable() {
if (enabledFormats.length > 1) { if (enabledFormats.length > 1) {
adaptiveFormatEvaluator.disable(); adaptiveFormatEvaluator.disable();
} }
......
...@@ -332,7 +332,7 @@ public class SmoothStreamingChunkSource implements ChunkSource { ...@@ -332,7 +332,7 @@ public class SmoothStreamingChunkSource implements ChunkSource {
} }
@Override @Override
public void disable(List<? extends MediaChunk> queue) { public void disable() {
if (enabledFormats.length > 1) { if (enabledFormats.length > 1) {
adaptiveFormatEvaluator.disable(); adaptiveFormatEvaluator.disable();
} }
......
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