From ea0cfdeeb13b6172f1522479e62dbd5fff8b6fe6 Mon Sep 17 00:00:00 2001 From: olly Date: Tue, 12 Jul 2016 13:01:11 -0700 Subject: [PATCH] Remove dead code from SmoothStreamingChunkSource ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127232159 --- .../SmoothStreamingChunkSource.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/library/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/SmoothStreamingChunkSource.java b/library/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/SmoothStreamingChunkSource.java index d61650372c..2701ba3db4 100644 --- a/library/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/SmoothStreamingChunkSource.java +++ b/library/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/SmoothStreamingChunkSource.java @@ -60,7 +60,6 @@ public class SmoothStreamingChunkSource implements ChunkSource { private SmoothStreamingManifest manifest; private int currentManifestChunkOffset; - private boolean needManifestRefresh; private IOException fatalError; @@ -132,11 +131,6 @@ public class SmoothStreamingChunkSource implements ChunkSource { } } manifest = newManifest; - needManifestRefresh = false; - } - - public boolean needManifestRefresh() { - return needManifestRefresh; } // ChunkSource implementation. @@ -182,11 +176,8 @@ public class SmoothStreamingChunkSource implements ChunkSource { StreamElement streamElement = manifest.streamElements[elementIndex]; if (streamElement.chunkCount == 0) { - if (manifest.isLive) { - needManifestRefresh = true; - } else { - out.endOfStream = true; - } + // There aren't any chunks for us to load. + out.endOfStream = !manifest.isLive; return; } @@ -202,7 +193,6 @@ public class SmoothStreamingChunkSource implements ChunkSource { } } - needManifestRefresh = manifest.isLive && chunkIndex >= streamElement.chunkCount - 1; if (chunkIndex >= streamElement.chunkCount) { // This is beyond the last chunk in the current manifest. out.endOfStream = !manifest.isLive;