diff options
| author | Nyanmisaka <nst799610810@gmail.com> | 2020-11-19 15:02:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 15:02:36 +0000 |
| commit | 5ff08338d5a475d2975ecc6d4fe5222456368bd2 (patch) | |
| tree | 26838c800802e8bba6c81e2a20d9477b2c9aed18 /Jellyfin.Api/Controllers/VideoHlsController.cs | |
| parent | 51dab0958d11e142f582da9c46a8679335b99dda (diff) | |
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Diffstat (limited to 'Jellyfin.Api/Controllers/VideoHlsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/VideoHlsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/VideoHlsController.cs b/Jellyfin.Api/Controllers/VideoHlsController.cs index bb8026543..b151f85e2 100644 --- a/Jellyfin.Api/Controllers/VideoHlsController.cs +++ b/Jellyfin.Api/Controllers/VideoHlsController.cs @@ -578,7 +578,7 @@ namespace Jellyfin.Api.Controllers args += _encodingHelper.GetOutputSizeParam(state, _encodingOptions, codec); } - if (!(state.SubtitleStream != null && state.SubtitleStream.IsExternal && !state.SubtitleStream.IsTextSubtitleStream)) + if (state.SubtitleStream == null || !state.SubtitleStream.IsExternal || state.SubtitleStream.IsTextSubtitleStream) { args += " -start_at_zero"; } |
