aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/MediaInfoController.cs
diff options
context:
space:
mode:
authorDeeJayBro <maricrafterminecraft@gmail.com>2021-07-16 11:48:08 +0200
committerDeeJayBro <maricrafterminecraft@gmail.com>2021-07-16 11:48:08 +0200
commit0ad62e7af93934ef0695891bd6a6adda67feb6ff (patch)
tree8f9e31cdae362f6f75d281da034b6964f2adf773 /Jellyfin.Api/Controllers/MediaInfoController.cs
parent4eeb69233d62d8ea8774acc440c43bef8a5a56fe (diff)
Fix ArgumentOutOfRangeException when getting PostedPlaybackInfo
Diffstat (limited to 'Jellyfin.Api/Controllers/MediaInfoController.cs')
-rw-r--r--Jellyfin.Api/Controllers/MediaInfoController.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/MediaInfoController.cs b/Jellyfin.Api/Controllers/MediaInfoController.cs
index e330f02b6..672c26ff8 100644
--- a/Jellyfin.Api/Controllers/MediaInfoController.cs
+++ b/Jellyfin.Api/Controllers/MediaInfoController.cs
@@ -161,6 +161,11 @@ namespace Jellyfin.Api.Controllers
liveStreamId)
.ConfigureAwait(false);
+ if (info.ErrorCode != null)
+ {
+ return info;
+ }
+
if (profile != null)
{
// set device specific data