Merge pull request #1402 from jdpurcell/patch11

Possible fix for WAV loading issue
This commit is contained in:
Nikolaj Olsson 2015-10-30 17:25:53 +01:00
commit ed6b4fcc92

View File

@ -345,7 +345,7 @@ namespace Nikse.SubtitleEdit.Core
/// </summary>
/// <param name="fileName">Wave file name</param>
public WavePeakGenerator(string fileName)
: this(File.OpenRead(fileName))
: this(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
}