Fix FormattingStreamWriter type

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-09-08 11:45:38 +08:00
parent c6de7225b9
commit 97ba12b8ef

View File

@ -1206,7 +1206,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
// Generate concat configuration entries for each file and write to file // Generate concat configuration entries for each file and write to file
Directory.CreateDirectory(Path.GetDirectoryName(concatFilePath)); Directory.CreateDirectory(Path.GetDirectoryName(concatFilePath));
using StreamWriter sw = new FormattingStreamWriter(concatFilePath, CultureInfo.InvariantCulture); using var sw = new FormattingStreamWriter(concatFilePath, CultureInfo.InvariantCulture);
foreach (var path in files) foreach (var path in files)
{ {
var mediaInfoResult = GetMediaInfo( var mediaInfoResult = GetMediaInfo(