diff --git a/components/ItemGrid/LoadVideoContentTask.brs b/components/ItemGrid/LoadVideoContentTask.brs index 0cf47b14..50a97855 100644 --- a/components/ItemGrid/LoadVideoContentTask.brs +++ b/components/ItemGrid/LoadVideoContentTask.brs @@ -405,8 +405,10 @@ function FindPreferredAudioStream(streams as dynamic) as integer if preferredLanguage <> invalid for i = 0 to streams.Count() - 1 - if LCase(streams[i].Type) = "audio" and LCase(streams[i].Language) = LCase(preferredLanguage) - return i + if LCase(streams[i].Type) = "audio" + if streams[i].Language <> invalid and LCase(streams[i].Language) = LCase(preferredLanguage) + return i + end if end if end for end if