We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf21add commit 43d1bfeCopy full SHA for 43d1bfe
libraries/exoplayer/src/main/java/androidx/media3/exoplayer/trackselection/AdaptiveTrackSelection.java
@@ -457,7 +457,8 @@ public void updateSelectedTrack(
457
previousReason = Iterables.getLast(queue).trackSelectionReason;
458
}
459
int newSelectedIndex = determineIdealSelectedIndex(nowMs, chunkDurationUs);
460
- if (!isTrackExcluded(previousSelectedIndex, nowMs)) {
+ if (newSelectedIndex != previousSelectedIndex
461
+ && !isTrackExcluded(previousSelectedIndex, nowMs)) {
462
// Revert back to the previous selection if conditions are not suitable for switching.
463
Format currentFormat = getFormat(previousSelectedIndex);
464
Format selectedFormat = getFormat(newSelectedIndex);
0 commit comments