aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DynamicHlsController.cs
diff options
context:
space:
mode:
authornyanmisaka <nst799610810@gmail.com>2020-11-11 19:04:58 +0800
committernyanmisaka <nst799610810@gmail.com>2020-11-11 19:04:58 +0800
commit11c74cb65cd936f0fece57357beb7a27741edc24 (patch)
tree9b08ff00ac4bc1a857f0c124cee31149b7d2c777 /Jellyfin.Api/Controllers/DynamicHlsController.cs
parent6987cb83570a6a822260691f009f4b3762d98942 (diff)
fix for no audio stream video
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/DynamicHlsController.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs
index 4cf4c24d7..0581928a0 100644
--- a/Jellyfin.Api/Controllers/DynamicHlsController.cs
+++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs
@@ -1429,6 +1429,11 @@ namespace Jellyfin.Api.Controllers
private string GetAudioArguments(StreamState state, EncodingOptions encodingOptions)
{
+ if (state.AudioStream == null)
+ {
+ return string.Empty;
+ }
+
var audioCodec = _encodingHelper.GetAudioEncoder(state);
if (!state.IsOutputVideo)