mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
validate data to prevent crash
This commit is contained in:
parent
f90975c084
commit
0f2e40571f
@ -47,8 +47,8 @@ function ItemPostPlaybackInfo(id as string, mediaSourceId = "" as string, audioT
|
||||
|
||||
' force the server to transcode AAC profiles we don't support to MP3 instead of the usual AAC
|
||||
' TODO: Remove this after server adds support for transcoding AAC from one profile to another
|
||||
if LCase(selectedAudioStream.Codec) = "aac"
|
||||
if LCase(selectedAudioStream.Profile) = "main" or LCase(selectedAudioStream.Profile) = "he-aac"
|
||||
if selectedAudioStream.Codec <> invalid and LCase(selectedAudioStream.Codec) = "aac"
|
||||
if selectedAudioStream.Profile <> invalid and LCase(selectedAudioStream.Profile) = "main" or LCase(selectedAudioStream.Profile) = "he-aac"
|
||||
for each rule in deviceProfile.TranscodingProfiles
|
||||
if rule.Container = "ts" or rule.Container = "mp4"
|
||||
if rule.AudioCodec = "aac"
|
||||
|
Loading…
Reference in New Issue
Block a user