@Override
    public void release() {
        super.release();
        if(mSegmentProcessingThread != null) {
            mSegmentProcessingThread.quit();
        }
        if(mSegmentSwitchingThread != null) {
            mSegmentSwitchingThread.quit();
        }
        invalidateFutureCache();
        mUsedCache.evictAll();
    }
Tries to switch to the next segment and returns true if there is one, false if there is none
and thus the current is the last one.
MediaPlayer-DASH/src/main/java/net/protyposis/android/mediaplayer/dash/DashMediaExtractor.java