[Android] Fix subs not loaded when restoring last playlist
Geoffrey Métais
git at videolan.org
Fri Mar 27 07:42:20 CET 2020
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 25 17:59:48 2020 +0100| [c80972abee2addb6e544e5d49816636556d506c5] | committer: Nicolas Pomepuy
Fix subs not loaded when restoring last playlist
Fix #1083
> https://code.videolan.org/videolan/vlc-android/commit/c80972abee2addb6e544e5d49816636556d506c5
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 90ebbd226..7a8071346 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -452,7 +452,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
fun setSpuTrack(index: Int) {
if (!player.setSpuTrack(index)) return
val media = getCurrentMedia() ?: return
- if (media.id != 0L) launch(Dispatchers.IO) { media.setLongMeta(MediaWrapper.META_SUBTITLE_TRACK, player.getSpuTrack().toLong()) }
+ if (media.id != 0L) launch(Dispatchers.IO) { media.setLongMeta(MediaWrapper.META_SUBTITLE_TRACK, index.toLong()) }
}
fun setAudioDelay(delay: Long) {
More information about the Android
mailing list