Clear TranscodingInfo if play method changed

This commit is contained in:
Dmitry Lyzo 2022-05-22 22:14:57 +03:00
parent 4c0510ee6d
commit ff4f624850

View file

@ -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