diff options
| author | David <daullmer@gmail.com> | 2020-06-11 15:57:31 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-06-11 15:57:31 +0200 |
| commit | fcbae95d1945ad5d632c5c86253c02da657db339 (patch) | |
| tree | 98403e86799b960671d0a5f7646329cfc914e926 /Jellyfin.Api/Controllers/SubtitleController.cs | |
| parent | 8178b194708f4added870597500a88d0ba5a3cfa (diff) | |
Use 'await using Stream' instead of 'using Stream'
Diffstat (limited to 'Jellyfin.Api/Controllers/SubtitleController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SubtitleController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SubtitleController.cs b/Jellyfin.Api/Controllers/SubtitleController.cs index 15c7d1eaa..ba2250d81 100644 --- a/Jellyfin.Api/Controllers/SubtitleController.cs +++ b/Jellyfin.Api/Controllers/SubtitleController.cs @@ -217,7 +217,7 @@ namespace Jellyfin.Api.Controllers if (string.Equals(format, "vtt", StringComparison.OrdinalIgnoreCase) && addVttTimeMap) { - using var stream = await EncodeSubtitles(id, mediaSourceId, index, format, startPositionTicks, endPositionTicks, copyTimestamps).ConfigureAwait(false); + await using Stream stream = await EncodeSubtitles(id, mediaSourceId, index, format, startPositionTicks, endPositionTicks, copyTimestamps).ConfigureAwait(false); using var reader = new StreamReader(stream); var text = await reader.ReadToEndAsync().ConfigureAwait(false); |
