mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-04 00:32:46 +01:00
Fix setting audio stream in PlaybackInfo for jellyfin-web.
This commit is contained in:
parent
1a92d94e92
commit
321e383965
1 changed files with 4 additions and 0 deletions
|
|
@ -283,6 +283,7 @@ namespace Jellyfin.Api.Helpers
|
|||
if (streamInfo != null)
|
||||
{
|
||||
SetDeviceSpecificSubtitleInfo(streamInfo, mediaSource, auth.Token);
|
||||
mediaSource.DefaultAudioStreamIndex = streamInfo.AudioStreamIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -327,6 +328,7 @@ namespace Jellyfin.Api.Helpers
|
|||
if (streamInfo != null)
|
||||
{
|
||||
SetDeviceSpecificSubtitleInfo(streamInfo, mediaSource, auth.Token);
|
||||
mediaSource.DefaultAudioStreamIndex = streamInfo.AudioStreamIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -354,6 +356,7 @@ namespace Jellyfin.Api.Helpers
|
|||
|
||||
// Do this after the above so that StartPositionTicks is set
|
||||
SetDeviceSpecificSubtitleInfo(streamInfo, mediaSource, auth.Token);
|
||||
mediaSource.DefaultAudioStreamIndex = streamInfo.AudioStreamIndex;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -391,6 +394,7 @@ namespace Jellyfin.Api.Helpers
|
|||
|
||||
// Do this after the above so that StartPositionTicks is set
|
||||
SetDeviceSpecificSubtitleInfo(streamInfo, mediaSource, auth.Token);
|
||||
mediaSource.DefaultAudioStreamIndex = streamInfo.AudioStreamIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue