From: brianmario Date: Thu, 19 Jul 2007 03:59:18 +0000 (+0000) Subject: WinGui: X-Git-Tag: 0.9.0~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a4f0a4e0089f3418df1e09eace439703bad9bb8;p=handbrake 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 --- 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)