upgrade to mpvkit-0.38.0

subtitles are working gain (was broken with 0.37.0)
This commit is contained in:
Toni Förster
2024-05-02 16:46:43 +02:00
parent d1cf45c6a1
commit 7b7f877fa5
3 changed files with 9 additions and 4 deletions

View File

@@ -138,6 +138,10 @@ final class MPVClient: ObservableObject {
args.append("replace")
// needed since mpvkit 0.38.0
// https://github.com/mpv-player/mpv/issues/13806#issuecomment-2029818905
args.append("-1")
if let time, time.seconds > 0 {
options.append("start=\(Int(time.seconds))")
}