Merge pull request #1332 from sevenrats/tvlistdetails_crash
This commit is contained in:
commit
a0c569fcd3
|
@ -96,7 +96,7 @@ sub itemContentChanged()
|
|||
m.videoCodec.visible = false
|
||||
if isValid(itemData.MediaSources)
|
||||
for i = 0 to itemData.MediaSources.Count() - 1
|
||||
if item.selectedVideoStreamId = itemData.MediaSources[i].id
|
||||
if item.selectedVideoStreamId = itemData.MediaSources[i].id and isValid(itemData.MediaSources[i].MediaStreams[0])
|
||||
m.videoCodec.text = tr("Video") + ": " + itemData.MediaSources[i].MediaStreams[0].DisplayTitle
|
||||
SetupAudioDisplay(itemData.MediaSources[i].MediaStreams, item.selectedAudioStreamIndex)
|
||||
exit for
|
||||
|
|
Loading…
Reference in New Issue
Block a user