fix handling and displaying captions

fixes #490

It also fixes the caption picker being empty when a caption was selected in the previous watched video.
This commit is contained in:
Toni Förster
2024-04-21 01:01:55 +02:00
parent d1cf45c6a1
commit f3637e2426
4 changed files with 19 additions and 14 deletions

View File

@@ -264,6 +264,10 @@ final class MPVBackend: PlayerBackend {
self.startClientUpdates()
// Captions should only be displayed when selected by the user,
// not when the video starts. So, we remove them.
self.client?.removeSubs()
if !preservingTime,
!upgrading,
let segment = self.model.sponsorBlock.segments.first,