-Removed playlist cleaning.

This commit is contained in:
John Zhen Mo 2018-03-31 10:59:49 -07:00
parent 111a0f9f17
commit de534b58c5
1 changed files with 0 additions and 15 deletions

View File

@ -324,7 +324,6 @@ public class MediaSourceManager {
private void maybeSynchronizePlayer() { private void maybeSynchronizePlayer() {
maybeUnblock(); maybeUnblock();
maybeSync(); maybeSync();
cleanPlaylist();
} }
/*////////////////////////////////////////////////////////////////////////// /*//////////////////////////////////////////////////////////////////////////
@ -477,20 +476,6 @@ public class MediaSourceManager {
"index=[" + currentIndex + "], item=[" + currentItem.getTitle() + "]"); "index=[" + currentIndex + "], item=[" + currentItem.getTitle() + "]");
playlist.invalidate(currentIndex, this::loadImmediate); playlist.invalidate(currentIndex, this::loadImmediate);
} }
/**
* Scans the entire playlist for {@link ManagedMediaSource}s that requires correction,
* and replaces these sources with a {@link PlaceholderMediaSource} if they are not part
* of the excluded items.
* */
private void cleanPlaylist() {
if (DEBUG) Log.d(TAG, "cleanPlaylist() called.");
for (final PlayQueueItem item : playQueue.getStreams()) {
if (isCorrectionNeeded(item)) {
playlist.invalidate(playQueue.indexOf(item));
}
}
}
/*////////////////////////////////////////////////////////////////////////// /*//////////////////////////////////////////////////////////////////////////
// MediaSource Playlist Helpers // MediaSource Playlist Helpers
//////////////////////////////////////////////////////////////////////////*/ //////////////////////////////////////////////////////////////////////////*/