aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2022-05-24 07:59:13 -0600
committercrobibero <cody@robibe.ro>2022-05-26 13:36:46 -0400
commitea69213e5b472718716423fd032714b04d74b5d5 (patch)
tree7408137c8cc8835f1f41efcf0f7f74a2e868f230 /Emby.Server.Implementations/Session/SessionManager.cs
parent97b3166ead0a71d5badf6fa3d4f4ffb33edebf98 (diff)
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>
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index e2fa93a38..d08fedd11 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