aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/ContentDirectory/ControlHandler.cs
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2021-11-09 19:19:48 +0100
committercvium <clausvium@gmail.com>2021-11-09 19:19:48 +0100
commitc1c77c87620e93053e50ca63e16928da59336eec (patch)
tree6f10c2df6e9420f09e9af97cf2aa18ba4f5eb0cb /Emby.Dlna/ContentDirectory/ControlHandler.cs
parent2b02b53fc03341a03f3339afd9aae40280a12e1c (diff)
comments
Diffstat (limited to 'Emby.Dlna/ContentDirectory/ControlHandler.cs')
-rw-r--r--Emby.Dlna/ContentDirectory/ControlHandler.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.cs
index a879b7b6b..64ce5fb51 100644
--- a/Emby.Dlna/ContentDirectory/ControlHandler.cs
+++ b/Emby.Dlna/ContentDirectory/ControlHandler.cs
@@ -1051,6 +1051,7 @@ namespace Emby.Dlna.ContentDirectory
{
Limit = query.Limit,
StartIndex = query.StartIndex,
+ // User cannot be null here as the caller has set it
UserId = query.User!.Id
},
new[] { parent },
@@ -1073,6 +1074,7 @@ namespace Emby.Dlna.ContentDirectory
var items = _userViewManager.GetLatestItems(
new LatestItemsQuery
{
+ // User cannot be null here as the caller has set it
UserId = query.User!.Id,
Limit = query.Limit ?? 50,
IncludeItemTypes = new[] { itemType },