mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Only reselect audio streams when user preference is respected (#13832)
This commit is contained in:
parent
c152f610ce
commit
32fe92d8f5
5 changed files with 79 additions and 4 deletions
|
|
@ -129,6 +129,13 @@ public class MediaInfoHelper
|
|||
var mediaSourcesClone = JsonSerializer.Deserialize<MediaSourceInfo[]>(JsonSerializer.SerializeToUtf8Bytes(mediaSources));
|
||||
if (mediaSourcesClone is not null)
|
||||
{
|
||||
// Carry over the default audio index source.
|
||||
// This field is not intended to be exposed to API clients, but it is used internally by the server
|
||||
for (int i = 0; i < mediaSourcesClone.Length && i < mediaSources.Length; i++)
|
||||
{
|
||||
mediaSourcesClone[i].DefaultAudioIndexSource = mediaSources[i].DefaultAudioIndexSource;
|
||||
}
|
||||
|
||||
result.MediaSources = mediaSourcesClone;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue