aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Dlna
diff options
context:
space:
mode:
authorJPVenson <ger-delta-07@hotmail.de>2024-11-14 21:56:18 +0100
committerGitHub <noreply@github.com>2024-11-14 21:56:18 +0100
commite8be7ab01192465735793c98bf9bbab9fca9cb8d (patch)
tree86de393341830e834b0fec743d060a80a57332b3 /MediaBrowser.Model/Dlna
parent30ba35aa0ce10916c6bd4cb6b33d573af52219ec (diff)
parent53683809d94cae373882d59e8b6761c517e0af1d (diff)
Merge branch 'jellyfin:master' into feature/EFUserData
Diffstat (limited to 'MediaBrowser.Model/Dlna')
-rw-r--r--MediaBrowser.Model/Dlna/StreamBuilder.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.cs
index a25ddc367d..767e012029 100644
--- a/MediaBrowser.Model/Dlna/StreamBuilder.cs
+++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs
@@ -208,6 +208,14 @@ namespace MediaBrowser.Model.Dlna
var longBitrate = Math.Min(transcodingBitrate, playlistItem.AudioBitrate ?? transcodingBitrate);
playlistItem.AudioBitrate = longBitrate > int.MaxValue ? int.MaxValue : Convert.ToInt32(longBitrate);
+
+ // Pure audio transcoding does not support comma separated list of transcoding codec at the moment.
+ // So just use the AudioCodec as is would be safe enough as the _transcoderSupport.CanEncodeToAudioCodec
+ // would fail so this profile will not even be picked up.
+ if (playlistItem.AudioCodecs.Count == 0 && !string.IsNullOrWhiteSpace(transcodingProfile.AudioCodec))
+ {
+ playlistItem.AudioCodecs = [transcodingProfile.AudioCodec];
+ }
}
playlistItem.TranscodeReasons = transcodeReasons;