From 74b6d4299a5e5cf8e18238b6b186398a083ba3a6 Mon Sep 17 00:00:00 2001 From: Kai Date: Tue, 12 Aug 2025 11:14:52 -0400 Subject: [PATCH] make it so that the video gets prepped even in background audio mode so that it's possible to switch to video mode later on Changelog: changed --- .../com/futo/platformplayer/views/video/FutoVideoPlayerBase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayerBase.kt b/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayerBase.kt index ff147b65..1a043eb0 100644 --- a/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayerBase.kt +++ b/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayerBase.kt @@ -873,7 +873,7 @@ abstract class FutoVideoPlayerBase : RelativeLayout { @OptIn(UnstableApi::class) private fun loadSelectedSources(play: Boolean, resume: Boolean): Boolean { - val sourceVideo = if(!isAudioMode || _lastAudioMediaSource == null) _lastVideoMediaSource else null; + val sourceVideo = _lastVideoMediaSource val sourceAudio = _lastAudioMediaSource; val sourceSubs = _lastSubtitleMediaSource;