summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Scan.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-02-20 22:30:12 +0000
committersr55 <[email protected]>2010-02-20 22:30:12 +0000
commit3678fc6353c1b1bbea23723891cbf950f66ab452 (patch)
tree401d6f9b859ecac9fdf13fe432dd564589ac7276 /win/C#/Functions/Scan.cs
parentb59b7b8733533aed4b97da6679e455df63049e23 (diff)
WinGui:
- Cleanup more StyleCop warnings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3131 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Scan.cs')
-rw-r--r--win/C#/Functions/Scan.cs27
1 files changed, 14 insertions, 13 deletions
diff --git a/win/C#/Functions/Scan.cs b/win/C#/Functions/Scan.cs
index 124f2309b..78d158564 100644
--- a/win/C#/Functions/Scan.cs
+++ b/win/C#/Functions/Scan.cs
@@ -113,7 +113,8 @@ namespace Handbrake.Functions
this.ScanStared(this, new EventArgs());
string handbrakeCLIPath = Path.Combine(Application.StartupPath, "HandBrakeCLI.exe");
- string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
+ string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
+ "\\HandBrake\\logs";
string dvdInfoPath = Path.Combine(logDir, "last_scan_log.txt");
// Make we don't pick up a stale last_encode_log.txt (and that we have rights to the file)
@@ -125,18 +126,18 @@ namespace Handbrake.Functions
dvdnav = " --no-dvdnav";
this.hbProc = new Process
- {
- StartInfo =
- {
- FileName = handbrakeCLIPath,
- Arguments =
- String.Format(@" -i ""{0}"" -t{1} {2} -v ", sourcePath, title, dvdnav),
- RedirectStandardOutput = true,
- RedirectStandardError = true,
- UseShellExecute = false,
- CreateNoWindow = true
- }
- };
+ {
+ StartInfo =
+ {
+ FileName = handbrakeCLIPath,
+ Arguments =
+ String.Format(@" -i ""{0}"" -t{1} {2} -v ", sourcePath, title, dvdnav),
+ RedirectStandardOutput = true,
+ RedirectStandardError = true,
+ UseShellExecute = false,
+ CreateNoWindow = true
+ }
+ };
this.hbProc.Start();
this.readData = new Parser(this.hbProc.StandardError.BaseStream);