aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common.Implementations')
-rw-r--r--MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs4
-rw-r--r--MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
index ea4a61e25..e9ef84663 100644
--- a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
+++ b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
@@ -234,10 +234,10 @@ namespace MediaBrowser.Common.Implementations.IO
{
if (_supportsAsyncFileStreams && isAsync)
{
- return new FileStream(path, mode, access, share, 4096, true);
+ return new FileStream(path, mode, access, share, StreamDefaults.DefaultFileStreamBufferSize, true);
}
- return new FileStream(path, mode, access, share);
+ return new FileStream(path, mode, access, share, StreamDefaults.DefaultFileStreamBufferSize);
}
/// <summary>
diff --git a/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs b/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs
index b49551ea9..f194b334a 100644
--- a/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs
+++ b/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs
@@ -61,7 +61,7 @@ namespace MediaBrowser.Common.Implementations.Serialization
private Stream OpenFile(string path)
{
- return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
+ return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072);
}
/// <summary>