Merge pull request #13411 from gnattu/use-writethrough-imagesaver

Use WriteThrough for ImageSaver
This commit is contained in:
Joshua M. Boniface 2025-01-25 02:29:39 -05:00 committed by GitHub
commit 6329de4fc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,6 +291,7 @@ namespace MediaBrowser.Providers.Manager
var fileStreamOptions = AsyncFile.WriteOptions;
fileStreamOptions.Mode = FileMode.Create;
fileStreamOptions.Options = FileOptions.WriteThrough;
if (source.CanSeek)
{
fileStreamOptions.PreallocationSize = source.Length;