File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5891,11 +5891,14 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5891
5891
} ;
5892
5892
const selectSrcEqualsMode = ( ) => {
5893
5893
if ( this . video_ && this . video_ . audioTracks ) {
5894
+ const LanguageUtils = shaka . util . LanguageUtils ;
5895
+ const inputLanguage = LanguageUtils . normalize ( audioTrack . language ) ;
5894
5896
const audioTracks = Array . from ( this . video_ . audioTracks ) ;
5895
5897
let trackMatch = null ;
5896
5898
for ( const track of audioTracks ) {
5899
+ const trackLanguage = track . language || 'und' ;
5897
5900
if ( track . label == audioTrack . label &&
5898
- track . language == audioTrack . language &&
5901
+ LanguageUtils . normalize ( trackLanguage ) == inputLanguage &&
5899
5902
track . kind == audioTrack . roles [ 0 ] ) {
5900
5903
trackMatch = track ;
5901
5904
break ;
You can’t perform that action at this time.
0 commit comments