diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-07-24 12:21:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-24 12:21:25 -0400 |
| commit | e3db0ac400e7a1a42e7a844a13ab052d26125612 (patch) | |
| tree | c72dcbc78fab6194731f17cd86ee028a6458d514 /MediaBrowser.MediaEncoding/Subtitles/SrtWriter.cs | |
| parent | f5a3cc654fc8646e633489919b4a8b9e7d3c48fe (diff) | |
| parent | 928bc6c7875c4523ee158aabc0e2ffc46c691383 (diff) | |
Merge pull request #3657 from Bond-009/readonlyspan
Review usage of string.Substring (part 1)
Diffstat (limited to 'MediaBrowser.MediaEncoding/Subtitles/SrtWriter.cs')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Subtitles/SrtWriter.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MediaBrowser.MediaEncoding/Subtitles/SrtWriter.cs b/MediaBrowser.MediaEncoding/Subtitles/SrtWriter.cs index 45b317b2e..143c010b7 100644 --- a/MediaBrowser.MediaEncoding/Subtitles/SrtWriter.cs +++ b/MediaBrowser.MediaEncoding/Subtitles/SrtWriter.cs @@ -8,8 +8,12 @@ using MediaBrowser.Model.MediaInfo; namespace MediaBrowser.MediaEncoding.Subtitles { + /// <summary> + /// SRT subtitle writer. + /// </summary> public class SrtWriter : ISubtitleWriter { + /// <inheritdoc /> public void Write(SubtitleTrackInfo info, Stream stream, CancellationToken cancellationToken) { using (var writer = new StreamWriter(stream, Encoding.UTF8, 1024, true)) |
