diff options
author | sr55 <[email protected]> | 2007-07-16 16:52:58 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-16 16:52:58 +0000 |
commit | 2595cd0693e666366e824fdbbfe45adade38a08e (patch) | |
tree | 44c61ec26d8a22cfc7ecfd1cf9724c22518ba696 /win/C#/frmReadDVD.cs | |
parent | 5e8776b2f2e87120efaae2ed509bce845c5de94c (diff) |
WinGui:
- CLI process handling code moved into its own class. Reduces code replication. Returns hbProc
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@696 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmReadDVD.cs')
-rw-r--r-- | win/C#/frmReadDVD.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index 04a47029b..62a1563cc 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -7,6 +7,7 @@ using System.Text; using System.Windows.Forms;
using System.IO;
using System.Threading;
+using System.Diagnostics;
namespace Handbrake
@@ -59,15 +60,10 @@ namespace Handbrake private void startProc(object state)
{
string query = "-i " + '"' + inputFile + '"' + " -t0";
- System.Diagnostics.Process hbProc = new System.Diagnostics.Process();
- hbProc.StartInfo.FileName = "hbcli.exe";
- hbProc.StartInfo.RedirectStandardOutput = true;
- hbProc.StartInfo.RedirectStandardError = true;
- hbProc.StartInfo.Arguments = query;
- hbProc.StartInfo.UseShellExecute = false;
- hbProc.StartInfo.CreateNoWindow = true;
+
+ Functions.CLI process = new Functions.CLI();
+ Process hbProc = process.runCli(this, query, true, true, false, true);
- hbProc.Start();
Parsing.Parser readData = new Parsing.Parser(hbProc.StandardError.BaseStream);
hbProc.WaitForExit();
hbProc.Close();
|