diff options
author | brianmario <[email protected]> | 2007-07-19 03:59:18 +0000 |
---|---|---|
committer | brianmario <[email protected]> | 2007-07-19 03:59:18 +0000 |
commit | 5a4f0a4e0089f3418df1e09eace439703bad9bb8 (patch) | |
tree | 95f1dd53314e00f25541a792e33339cd8de4472f /win/C# | |
parent | 5a85699f791f49ea7643ec2335d919d152410652 (diff) |
WinGui:
minor update to encode process CLI call -- put it on it's own thread
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@716 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/frmMain.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 90062b108..e050a403e 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -608,18 +608,18 @@ namespace Handbrake query = QueryEditorText.Text;
}
- Functions.CLI process = new Functions.CLI();
- hbProc = process.runCli(this, query, false, false, false, false);
-
- ThreadPool.QueueUserWorkItem(procMonitor);
+ ThreadPool.QueueUserWorkItem(procMonitor, query);
}
private void procMonitor(object state)
{
+ Functions.CLI process = new Functions.CLI();
+ hbProc = process.runCli(this, (string)state, false, false, false, false);
MessageBox.Show("The encode process has now started.", "Status", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
hbProc.WaitForExit();
hbProc.Close();
hbProc.Dispose();
+ hbProc = null;
MessageBox.Show("The encode process has now ended.", "Status", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
@@ -990,6 +990,9 @@ namespace Handbrake lbl_Aspect.Text = selectedTitle.AspectRatio.ToString();
lbl_RecomendedCrop.Text = string.Format("{0}/{1}/{2}/{3}", selectedTitle.AutoCropDimensions[0], selectedTitle.AutoCropDimensions[1], selectedTitle.AutoCropDimensions[2], selectedTitle.AutoCropDimensions[3]);
+ text_width.Text = selectedTitle.Resolution.Width.ToString();
+ text_height.Text = selectedTitle.Resolution.Height.ToString();
+
drop_chapterStart.Items.Clear();
drop_chapterStart.Items.AddRange(selectedTitle.Chapters.ToArray());
if (drop_chapterStart.Items.Count > 0)
|