فهرست منبع

Merge pull request #7785 from dmitrylyzo/clear-transcodinginfo

Clear TranscodingInfo if play method changed

(cherry picked from commit c9491cf317f83012dafe17e2a40a9548993c51f0)
Signed-off-by: crobibero <cody@robibe.ro>
Cody Robibero 3 سال پیش
والد
کامیت
ea69213e5b
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