소스 검색

Clear TranscodingInfo if play method changed

Dmitry Lyzo 3 년 전
부모
커밋
ff4f624850
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Emby.Server.Implementations/Session/SessionManager.cs

+ 5 - 0
Emby.Server.Implementations/Session/SessionManager.cs

@@ -770,6 +770,11 @@ namespace Emby.Server.Implementations.Session
 
             await UpdateNowPlayingItem(session, info, libraryItem, !isAutomated).ConfigureAwait(false);
 
+            if (!string.IsNullOrEmpty(session.DeviceId) && info.PlayMethod != PlayMethod.Transcode)
+            {
+                ClearTranscodingInfo(session.DeviceId);
+            }
+
             var users = GetUsers(session);
 
             // only update saved user data on actual check-ins, not automated ones