Skip to content
Snippets Groups Projects
Commit c80972ab authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Nicolas Pomepuy
Browse files

Fix subs not loaded when restoring last playlist

Fix #1083
parent b8b0cc65
No related branches found
No related tags found
1 merge request!521Video spu
Pipeline #15305 passed with stage
in 4 minutes and 2 seconds
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment