From b6e4ab7a9b77cb48d46d162aba3006bc8a0f8440 Mon Sep 17 00:00:00 2001 From: FaiChou Date: Sun, 31 Dec 2023 22:23:57 +0800 Subject: [PATCH] fix: language as subtitle name if name is nil, instead of codec --- Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift b/Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift index 97653eaf5..957e09f9f 100644 --- a/Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift +++ b/Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift @@ -104,7 +104,7 @@ public class FFmpegAssetTrack: MediaPlayerTrack { if let value = metadata["title"] { name = value } else { - name = codecName + name = languageCode ?? codecName } // AV_DISPOSITION_DEFAULT if mediaType == .subtitle {