diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-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)
|