Skip to content

Commit

Permalink
Fix PlaybackController not always disabling default track
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Oct 20, 2024
1 parent fbfd681 commit 8cdeb65
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,9 +1098,8 @@ public void onPrepared() {
if (!burningSubs) {
// Make sure the requested subtitles are enabled when external/embedded
Integer currentSubtitleIndex = mCurrentOptions.getSubtitleStreamIndex();
if (currentSubtitleIndex != null) {
PlaybackControllerHelperKt.setSubtitleIndex(this, currentSubtitleIndex, true);
}
if (currentSubtitleIndex == null) currentSubtitleIndex = -1;
PlaybackControllerHelperKt.setSubtitleIndex(this, currentSubtitleIndex, true);
}

// select an audio track
Expand Down

0 comments on commit 8cdeb65

Please sign in to comment.