From e13b502c348cbf8f7a085b86e2a97077274717ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=81nis?= <97699850+janisslsm@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:06:18 +0300 Subject: [PATCH] fix: broken offline video duration --- .../com/github/libretube/ui/activities/OfflinePlayerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt b/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt index f9b74d6d6..18856de6f 100644 --- a/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt +++ b/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt @@ -183,7 +183,7 @@ class OfflinePlayerActivity : BaseActivity() { val subtitleSource = SingleSampleMediaSource.Factory(FileDataSource.Factory()) .createMediaSource(subtitle, C.TIME_UNSET) - mediaSource = MergingMediaSource(subtitleSource, mediaSource) + mediaSource = MergingMediaSource(mediaSource, subtitleSource) } player.setMediaSource(mediaSource)