mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 16:58:50 +01:00
fix: Fix transcode reasons
Don't add codec failure reasons if the codec isn't supported.
This commit is contained in:
@@ -1183,7 +1183,18 @@ namespace MediaBrowser.Model.Dlna
|
||||
audioCodecProfileReasons = audioStreamMatches.GetValueOrDefault(selectedAudioStream);
|
||||
}
|
||||
|
||||
var failureReasons = directPlayProfileReasons | containerProfileReasons | videoCodecProfileReasons | audioCodecProfileReasons | subtitleProfileReasons;
|
||||
var failureReasons = directPlayProfileReasons | containerProfileReasons | subtitleProfileReasons;
|
||||
|
||||
if ((failureReasons & TranscodeReason.VideoCodecNotSupported) == 0)
|
||||
{
|
||||
failureReasons |= videoCodecProfileReasons;
|
||||
}
|
||||
|
||||
if ((failureReasons & TranscodeReason.AudioCodecNotSupported) == 0)
|
||||
{
|
||||
failureReasons |= audioCodecProfileReasons;
|
||||
}
|
||||
|
||||
var directStreamFailureReasons = failureReasons & (~DirectStreamReasons);
|
||||
|
||||
PlayMethod? playMethod = null;
|
||||
|
||||
Reference in New Issue
Block a user