minor refact

This commit is contained in:
Nikolaj Olsson 2018-08-24 22:09:53 +02:00
parent 64ff829959
commit 69bd377a77

View File

@ -10,15 +10,15 @@ namespace Nikse.SubtitleEdit.Core
public static class MovieHasher
{
public static string GenerateHash(string videofileName)
public static string GenerateHash(string videoFileName)
{
return ToHexadecimal(ComputeMovieHash(videofileName));
return ToHexadecimal(ComputeMovieHash(videoFileName));
}
private static byte[] ComputeMovieHash(string videofileName)
private static byte[] ComputeMovieHash(string videoFileName)
{
byte[] result;
using (Stream input = new FileStream(videofileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
using (Stream input = new FileStream(videoFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
result = ComputeMovieHash(input);
}