From 8a01a928a14b8bd68a884d012859acee70e08dfb Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Wed, 15 May 2024 15:07:40 +0200 Subject: [PATCH] fix bug with subtitles https://github.com/mifi/lossless-cut/issues/256#issuecomment-2111902106 --- src/renderer/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index c257b86a..e888737e 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -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