Skip to content

Commit

Permalink
fix bug with subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed May 15, 2024
1 parent 2599c4c commit 8a01a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function App() {
const compatPlayerWanted = (isRotationSet || activeVideoStreamIndex != null || activeAudioStreamIndex != null) && !hideMediaSourcePlayer;
const compatPlayerEnabled = (compatPlayerRequired || compatPlayerWanted) && (activeVideoStream != null || activeAudioStream != null);

const shouldShowPlaybackStreamSelector = videoStreams.length > 1 || audioStreams.length > 1 || (compatPlayerEnabled && subtitleStreams.length > 0);
const shouldShowPlaybackStreamSelector = videoStreams.length > 1 || audioStreams.length > 1 || (subtitleStreams.length > 0 && !compatPlayerEnabled);

useEffect(() => {
// Reset the user preference when the state changes to true
Expand Down

0 comments on commit 8a01a92

Please sign in to comment.