diff options
Diffstat (limited to 'src/com/android/tv/tuner/exoplayer/buffer/SampleChunk.java')
-rw-r--r-- | src/com/android/tv/tuner/exoplayer/buffer/SampleChunk.java | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/com/android/tv/tuner/exoplayer/buffer/SampleChunk.java b/src/com/android/tv/tuner/exoplayer/buffer/SampleChunk.java index ab6d1a75..552caaef 100644 --- a/src/com/android/tv/tuner/exoplayer/buffer/SampleChunk.java +++ b/src/com/android/tv/tuner/exoplayer/buffer/SampleChunk.java @@ -151,23 +151,18 @@ public class SampleChunk { mCurrentOffset = 0; } - private void reset(SampleChunk chunk, long offset) { - mChunk = chunk; - mCurrentOffset = offset; - } - /** * Prepares for read I/O operation from a new SampleChunk. * * @param chunk the new SampleChunk to read from * @throws IOException */ - void openRead(SampleChunk chunk, long offset) throws IOException { + void openRead(SampleChunk chunk) throws IOException { if (mChunk != null) { mChunk.closeRead(); } chunk.openRead(); - reset(chunk, offset); + reset(chunk); } /** @@ -246,20 +241,6 @@ public class SampleChunk { } /** - * Returns the current SampleChunk for subsequent I/O operation. - */ - SampleChunk getChunk() { - return mChunk; - } - - /** - * Returns the current offset of the current SampleChunk for subsequent I/O operation. - */ - long getOffset() { - return mCurrentOffset; - } - - /** * Releases SampleChunk. the SampleChunk will not be used anymore. * * @param chunk to release |