mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-15 05:23:02 +03:00
Merge remote-tracking branch 'upstream/master' into livetv-ts-fix
This commit is contained in:
@@ -2675,9 +2675,10 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
state.MediaSource = mediaSource;
|
||||
|
||||
var request = state.BaseRequest;
|
||||
if (!string.IsNullOrWhiteSpace(request.AudioCodec))
|
||||
var supportedAudioCodecs = state.SupportedAudioCodecs;
|
||||
if (request != null && supportedAudioCodecs != null && supportedAudioCodecs.Length > 0)
|
||||
{
|
||||
var supportedAudioCodecsList = request.AudioCodec.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
var supportedAudioCodecsList = supportedAudioCodecs.ToList();
|
||||
|
||||
ShiftAudioCodecsIfNeeded(supportedAudioCodecsList, state.AudioStream);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user