mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-01 11:23:36 +02:00
Move declaration closer to usage
This commit is contained in:
parent
72faeed1db
commit
d6b557d9ee
|
@ -107,7 +107,6 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||||
|
|
||||||
if (libraryOptions.EnableLUFSScan)
|
if (libraryOptions.EnableLUFSScan)
|
||||||
{
|
{
|
||||||
string output;
|
|
||||||
using (var process = new Process()
|
using (var process = new Process()
|
||||||
{
|
{
|
||||||
StartInfo = new ProcessStartInfo
|
StartInfo = new ProcessStartInfo
|
||||||
|
@ -131,7 +130,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
using var reader = process.StandardError;
|
using var reader = process.StandardError;
|
||||||
output = await reader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
|
var output = await reader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
|
||||||
cancellationToken.ThrowIfCancellationRequested();
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
MatchCollection split = LUFSRegex().Matches(output);
|
MatchCollection split = LUFSRegex().Matches(output);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue