fix for no audio stream video

This commit is contained in:
nyanmisaka
2020-11-11 19:04:58 +08:00
parent 6987cb8357
commit 11c74cb65c
3 changed files with 20 additions and 0 deletions

View File

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