Skip to content

Commit

Permalink
Merge pull request #1971 from jellyfin/jf-fix-2-1.6-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Oct 8, 2024
2 parents 988bcdf + 2f30280 commit bda850a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/ItemGrid/LoadVideoContentTask.bs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ sub LoadItems_AddVideoContent(video as object, mediaSourceId as dynamic, audio_s
video.length = meta.json.MediaSources[0].RunTimeTicks / 10000000
end if
end if
video.MaxVideoDecodeResolution = [meta.json.MediaSources[0].MediaStreams[0].Width, meta.json.MediaSources[0].MediaStreams[0].Height]
if isValid(meta.json.MediaSources[0]) and isValid(meta.json.MediaSources[0].MediaStreams[0])
video.MaxVideoDecodeResolution = [meta.json.MediaSources[0].MediaStreams[0].Width, meta.json.MediaSources[0].MediaStreams[0].Height]
end if

subtitle_idx = m.top.selectedSubtitleIndex
videotype = LCase(meta.type)
Expand Down

0 comments on commit bda850a

Please sign in to comment.