this.btn_queue.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btn_queue.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
this.btn_queue.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
- this.btn_queue.Location = new System.Drawing.Point(335, 589);\r
+ this.btn_queue.Location = new System.Drawing.Point(415, 589);\r
this.btn_queue.Name = "btn_queue";\r
- this.btn_queue.Size = new System.Drawing.Size(124, 22);\r
+ this.btn_queue.Size = new System.Drawing.Size(115, 22);\r
this.btn_queue.TabIndex = 416;\r
this.btn_queue.TabStop = false;\r
this.btn_queue.Text = "Add to Queue";\r
this.btn_eCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btn_eCancel.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
this.btn_eCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
- this.btn_eCancel.Location = new System.Drawing.Point(465, 589);\r
+ this.btn_eCancel.Location = new System.Drawing.Point(344, 589);\r
this.btn_eCancel.Name = "btn_eCancel";\r
this.btn_eCancel.Size = new System.Drawing.Size(65, 22);\r
this.btn_eCancel.TabIndex = 419;\r
this.btn_eCancel.TabStop = false;\r
this.btn_eCancel.Text = "Cancel";\r
this.btn_eCancel.UseVisualStyleBackColor = false;\r
+ this.btn_eCancel.Visible = false;\r
this.btn_eCancel.Click += new System.EventHandler(this.btn_eCancel_Click);\r
// \r
// frmMain\r
\r
String filename ="";\r
text_source.Text = "";\r
+ \r
+ int scanTwice = 0;\r
\r
if (RadioDVD.Checked)\r
{\r
filename = DVD_Open.SelectedPath;\r
if (filename != "")\r
{\r
+ Form frmRD = new frmReadDVD(filename, this, dvdInfoWindow);\r
text_source.Text = filename;\r
- Form frmReadDVD = new frmReadDVD(filename, this, dvdInfoWindow);\r
- frmReadDVD.ShowDialog();\r
+ frmRD.ShowDialog();\r
}\r
}\r
else\r
filename = ISO_Open.FileName;\r
if (filename != "")\r
{\r
+ Form frmRD = new frmReadDVD(filename, this, dvdInfoWindow);\r
text_source.Text = filename;\r
- Form frmReadDVD = new frmReadDVD(filename, this, dvdInfoWindow);\r
- frmReadDVD.ShowDialog();\r
+ frmRD.ShowDialog();\r
}\r
} \r
\r
- // Quick check to make sure some titles were found.\r
+ // Check if there was titles in the dvd title dropdown\r
+ // If there isn't any, rescan the DVD. hbcli occasionally fails (see bug in encode) with standard error.\r
if (filename != "")\r
{\r
- if (drp_dvdtitle.Items.Count == 0)\r
+ if (drp_dvdtitle.Items.Count == 0) \r
{\r
- MessageBox.Show("No Title(s) found. Please make sure you have selected a valid, non-copy protected source. Please refer to the FAQ for details..", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+ MessageBox.Show(scanTwice.ToString());\r
+ if (scanTwice == 0)\r
+ {\r
+ MessageBox.Show("Scan Failed. Will attempt to scan the source 1 more time.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+ Form frmRD = new frmReadDVD(filename, this, dvdInfoWindow);\r
+ frmRD.ShowDialog();\r
+ scanTwice = 1;\r
+ }\r
}\r
}\r
else\r
text_source.Text = "Click 'Browse' to continue";\r
}\r
\r
+ if (drp_dvdtitle.Items.Count == 0)\r
+ {\r
+ MessageBox.Show("No Title(s) found. Please make sure you have selected a valid, non-copy protected source. Please refer to the FAQ for details.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+ }\r
+\r
}\r
\r
private void btn_destBrowse_Click(object sender, EventArgs e)\r
}\r
\r
ThreadPool.QueueUserWorkItem(procMonitor, query);\r
+ lbl_encode.Text = "Encoding Started";\r
}\r
\r
private void btn_eCancel_Click(object sender, EventArgs e)\r
}\r
else\r
{\r
- hbProc = process.runCli(this, (string)state, true, true, false, true);\r
+ hbProc = process.runCli(this, (string)state, false, false, false, false);\r
\r
MessageBox.Show("The encode process has now started.", "Status", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
\r
try\r
{\r
- Parsing.Parser encode = new Parsing.Parser(hbProc.StandardError.BaseStream);\r
- encode.OnEncodeProgress += encode_OnEncodeProgress;\r
- while (!encode.EndOfStream)\r
- {\r
- encode.ReadLine();\r
- }\r
+\r
+ //*****************************************************************************************\r
+ // BUG!\r
+ // When the below code is used and standard error is set to true, hbcli is outputing a\r
+ // video stream which has mild corruption issues every few seconds.\r
+ // Maybe an issue with the Parser cauing the CLI to hickup/pause?\r
+ //*****************************************************************************************\r
+\r
+ //Parsing.Parser encode = new Parsing.Parser(hbProc.StandardError.BaseStream);\r
+ //encode.OnEncodeProgress += encode_OnEncodeProgress;\r
+ //while (!encode.EndOfStream)\r
+ //{\r
+ // encode.ReadLine();\r
+ //}\r
\r
hbProc.WaitForExit();\r
process.closeCLI();\r
- hbProc = null;\r
+ \r
}\r
catch (Exception)\r
{\r
}\r
\r
MessageBox.Show("The encode process has now ended.", "Status", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
+ hbProc = null;\r
}\r
}\r
\r