mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Improve readability
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
edc15c8e92
commit
5913db991b
@ -1419,7 +1419,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
var failureReasons = analyzedProfiles[false]
|
var failureReasons = analyzedProfiles[false]
|
||||||
.Select(analysis => analysis.Result)
|
.Select(analysis => analysis.Result)
|
||||||
.Where(result => !containerSupported || (result.TranscodeReason & TranscodeReason.ContainerNotSupported) == 0)
|
.Where(result => !containerSupported || !result.TranscodeReason.HasFlag(TranscodeReason.ContainerNotSupported))
|
||||||
.Select(result => result.TranscodeReason)
|
.Select(result => result.TranscodeReason)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
@ -1429,8 +1429,8 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var videoCodecNotSupportedCount = failureReasons.Count(r => (r & TranscodeReason.VideoCodecNotSupported) != 0);
|
var videoCodecNotSupportedCount = failureReasons.Count(r => r.HasFlag(TranscodeReason.VideoCodecNotSupported));
|
||||||
var audioCodecNotSupportedCount = failureReasons.Count(r => (r & TranscodeReason.AudioCodecNotSupported) != 0);
|
var audioCodecNotSupportedCount = failureReasons.Count(r => r.HasFlag(TranscodeReason.AudioCodecNotSupported));
|
||||||
|
|
||||||
if (!containerSupported)
|
if (!containerSupported)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user