aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-07-17 20:54:07 +0200
committerGitHub <noreply@github.com>2021-07-17 20:54:07 +0200
commitea7c7ea48c49750c182bf1f2c9a2496c5297aa8f (patch)
tree268b54678e60abc28f89cc1c570cd0473ec8363f
parent0e8537a6a56d5085ab2fedf0c435bd770e336657 (diff)
parent0ad62e7af93934ef0695891bd6a6adda67feb6ff (diff)
Merge pull request #5864 from DeeJayBro/return-on-error
Fix ArgumentOutOfRangeException when getting PostedPlaybackInfo
-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 e7a7a6add..8903e0ce8 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