Skip to content

Commit

Permalink
Fix not disabling embedded subtitle tracks that require baking
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Oct 20, 2024
1 parent 17ffdd2 commit 3a799d2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,7 @@ public void onPrepared() {
if (!burningSubs) {
// Make sure the requested subtitles are enabled when external/embedded
Integer currentSubtitleIndex = mCurrentOptions.getSubtitleStreamIndex();

if (currentSubtitleIndex != null && currentSubtitleIndex != -1) {
if (currentSubtitleIndex != null) {
PlaybackControllerHelperKt.setSubtitleIndex(this, currentSubtitleIndex, true);
}
}
Expand Down

0 comments on commit 3a799d2

Please sign in to comment.