解决解析视频时VideoQuality属性为null时崩溃的问题

croire 3 years ago
parent a9b84875c3
commit 700b4df9da

@ -75,7 +75,6 @@ namespace DownKyi.ViewModels.PageViewModels
set => SetProperty(ref videoQuality, value);
}
#region
// 视频画质选择事件
@ -89,7 +88,7 @@ namespace DownKyi.ViewModels.PageViewModels
{
// 杜比视界
string dolby = Constant.GetAudioQualities()[3].Name;
if (VideoQuality.Quality == 126)
if (VideoQuality != null && VideoQuality.Quality == 126)
{
ListHelper.AddUnique(AudioQualityFormatList, dolby);
AudioQualityFormat = dolby;

Loading…
Cancel
Save