The Free Software Media System - Server Backend & API
Guard against null-overwrite of saved audio/subtitle track selections
llaforest6ea2f05497ef
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.csindex e2ddf86c7a..5652d0c9b5 100644--- a/Emby.Server.Implementations/Session/SessionManager.cs+++ b/Emby.Server.Implementations/Session/SessionManager.cs@@ -973,7 +973,7 @@ namespace Emby.Server.Implementations.Sessionif (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.Sessionif (user.RememberSubtitleSelections){- if (data.SubtitleStreamIndex != info.SubtitleStreamIndex)+ if (info.SubtitleStreamIndex.HasValue && data.SubtitleStreamIndex != info.SubtitleStreamIndex){data.SubtitleStreamIndex = info.SubtitleStreamIndex;changed = true;