Skip to content

Commit

Permalink
Fix disabling subtitles not always working
Browse files Browse the repository at this point in the history
(cherry picked from commit 3b963c9)
  • Loading branch information
nielsvanvelzen committed Aug 21, 2023
1 parent 3d3e2e5 commit d9e99cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void getVideoStreamInfo(DeviceInfo deviceInfo, final VideoOptions options
request.setAudioStreamIndex(audioIdx);
}
Integer subIdx = options.getSubtitleStreamIndex();
if (subIdx != null && subIdx >= 0) {
if (subIdx != null) {
request.setSubtitleStreamIndex(subIdx);
}

Expand Down

0 comments on commit d9e99cb

Please sign in to comment.