mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 09:21:55 +00:00
Backport pull request #12550 from jellyfin/release-10.9.z
Create and use FormattingStreamWriter
Original-merge: cd2f2ca178
Merged-by: Bond-009 <bond.009@outlook.com>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
c7bb2fe137
commit
7631956451
5 changed files with 63 additions and 7 deletions
|
|
@ -1206,7 +1206,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
|
||||
// Generate concat configuration entries for each file and write to file
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(concatFilePath));
|
||||
using StreamWriter sw = new StreamWriter(concatFilePath);
|
||||
using StreamWriter sw = new FormattingStreamWriter(concatFilePath, CultureInfo.InvariantCulture);
|
||||
foreach (var path in files)
|
||||
{
|
||||
var mediaInfoResult = GetMediaInfo(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue