From 700b4df9da4c615b3ed15a29d7d82380d26edd84 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Sun, 27 Feb 2022 22:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=A7=A3=E6=9E=90=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=97=B6VideoQuality=E5=B1=9E=E6=80=A7=E4=B8=BAnull?= =?UTF-8?q?=E6=97=B6=E5=B4=A9=E6=BA=83=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi/ViewModels/PageViewModels/VideoPage.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DownKyi/ViewModels/PageViewModels/VideoPage.cs b/DownKyi/ViewModels/PageViewModels/VideoPage.cs index 08b9373..be645a9 100644 --- a/DownKyi/ViewModels/PageViewModels/VideoPage.cs +++ b/DownKyi/ViewModels/PageViewModels/VideoPage.cs @@ -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;