Add comment
This commit is contained in:
parent
74021e7a2d
commit
3d55fba207
|
@ -252,6 +252,7 @@ function defaultSubtitleTrackFromVid(videoID) as integer
|
||||||
selectedAudioLanguage = ""
|
selectedAudioLanguage = ""
|
||||||
audioMediaStream = meta.json.MediaSources[0].MediaStreams[m.top.selectedAudioStreamIndex]
|
audioMediaStream = meta.json.MediaSources[0].MediaStreams[m.top.selectedAudioStreamIndex]
|
||||||
|
|
||||||
|
' Ensure audio media stream is valid before using language property
|
||||||
if isValid(audioMediaStream)
|
if isValid(audioMediaStream)
|
||||||
selectedAudioLanguage = audioMediaStream.Language ?? ""
|
selectedAudioLanguage = audioMediaStream.Language ?? ""
|
||||||
end if
|
end if
|
||||||
|
|
Loading…
Reference in New Issue
Block a user