Skip to content

Commit

Permalink
Merge pull request #711 from FaiChou/develop
Browse files Browse the repository at this point in the history
fix: language as subtitle name if name is nil, instead of codec
  • Loading branch information
kingslay authored Dec 31, 2023
2 parents 433ff6c + b6e4ab7 commit 0582191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0582191

Please sign in to comment.