From ea69213e5b472718716423fd032714b04d74b5d5 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Tue, 24 May 2022 07:59:13 -0600 Subject: [PATCH] Merge pull request #7785 from dmitrylyzo/clear-transcodinginfo Clear TranscodingInfo if play method changed (cherry picked from commit c9491cf317f83012dafe17e2a40a9548993c51f0) Signed-off-by: crobibero --- Emby.Server.Implementations/Session/SessionManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index e2fa93a380..d08fedd111 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/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