mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 12:16:49 +01:00
Merge pull request #16769 from llaforest/fix/playback-progress-null-overwrite
Guard against null-overwrite of saved audio/subtitle track selections
This commit is contained in:
@@ -973,7 +973,7 @@ namespace Emby.Server.Implementations.Session
|
||||
|
||||
if (user.RememberAudioSelections)
|
||||
{
|
||||
if (data.AudioStreamIndex != info.AudioStreamIndex)
|
||||
if (info.AudioStreamIndex.HasValue && data.AudioStreamIndex != info.AudioStreamIndex)
|
||||
{
|
||||
data.AudioStreamIndex = info.AudioStreamIndex;
|
||||
changed = true;
|
||||
@@ -990,7 +990,7 @@ namespace Emby.Server.Implementations.Session
|
||||
|
||||
if (user.RememberSubtitleSelections)
|
||||
{
|
||||
if (data.SubtitleStreamIndex != info.SubtitleStreamIndex)
|
||||
if (info.SubtitleStreamIndex.HasValue && data.SubtitleStreamIndex != info.SubtitleStreamIndex)
|
||||
{
|
||||
data.SubtitleStreamIndex = info.SubtitleStreamIndex;
|
||||
changed = true;
|
||||
|
||||
Reference in New Issue
Block a user