解决视频编码可能出现空白项的问题

croire 3 years ago
parent 9df0a74fe2
commit 062bb81589

@ -165,7 +165,10 @@ namespace DownKyi.Services
if (videoQualityExist == null)
{
List<string> videoCodecList = new List<string>();
ListHelper.AddUnique(videoCodecList, codecName);
if (codecName != string.Empty)
{
ListHelper.AddUnique(videoCodecList, codecName);
}
VideoQuality videoQuality = new VideoQuality()
{
@ -179,7 +182,10 @@ namespace DownKyi.Services
{
if (!videoQualityList[videoQualityList.IndexOf(videoQualityExist)].VideoCodecList.Exists(t => t.Equals(codecName)))
{
videoQualityList[videoQualityList.IndexOf(videoQualityExist)].VideoCodecList.Add(codecName);
if (codecName != string.Empty)
{
videoQualityList[videoQualityList.IndexOf(videoQualityExist)].VideoCodecList.Add(codecName);
}
}
}

Loading…
Cancel
Save