summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/C#/Functions/Common.cs23
-rw-r--r--win/C#/Parsing/Title.cs2
-rw-r--r--win/C#/frmOptions.Designer.cs2
-rw-r--r--win/C#/frmReadDVD.cs2
4 files changed, 6 insertions, 23 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs
index 8ef4b3b8d..01c337817 100644
--- a/win/C#/Functions/Common.cs
+++ b/win/C#/Functions/Common.cs
@@ -108,26 +108,7 @@ namespace Handbrake.Functions
// Picture Settings Tab
#region Picture
-
- if (presetQuery.CropTop == "0" && presetQuery.CropBottom == "0" && presetQuery.CropLeft == "0" && presetQuery.CropRight == "0")
- {
- mainWindow.check_customCrop.Checked = true;
- mainWindow.text_top.Text = "0";
- mainWindow.text_bottom.Text = "0";
- mainWindow.text_left.Text = "0";
- mainWindow.text_right.Text = "0";
- }
- else if (presetQuery.CropTop != null && presetQuery.CropBottom != null && presetQuery.CropLeft != null && presetQuery.CropRight != null)
- {
- mainWindow.check_customCrop.Checked = true;
- mainWindow.text_top.Text = presetQuery.CropTop;
- mainWindow.text_bottom.Text = presetQuery.CropBottom;
- mainWindow.text_left.Text = presetQuery.CropLeft;
- mainWindow.text_right.Text = presetQuery.CropRight;
- }
- else
- mainWindow.check_autoCrop.Checked = true;
-
+ mainWindow.check_autoCrop.Checked = true;
mainWindow.drp_deInterlace_option.Text = presetQuery.DeInterlace;
mainWindow.drp_deNoise.Text = presetQuery.DeNoise;
@@ -499,6 +480,8 @@ namespace Handbrake.Functions
{
string query = "";
+ query += " -f " + mainWindow.drop_format.Text.ToLower().Replace(" file", "");
+
// Picture Settings Tab
#region Picture Settings Tab
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs
index f819ab1b3..a2205fcb7 100644
--- a/win/C#/Parsing/Title.cs
+++ b/win/C#/Parsing/Title.cs
@@ -192,7 +192,7 @@ namespace Handbrake.Parsing
* we expect to be in the output, so read one line ahead to skip over the unknown line
*/
- if ((char)sr.Peek() != '[' && (char)sr.Peek() != '+' && (char)sr.Peek() != null) // Hack, Fix later
+ if ((char)sr.Peek() != '[' && (char)sr.Peek() != '+' ) // Hack, Fix later
sr.ReadLine();
}
diff --git a/win/C#/frmOptions.Designer.cs b/win/C#/frmOptions.Designer.cs
index 7555735b4..3ee7e5c36 100644
--- a/win/C#/frmOptions.Designer.cs
+++ b/win/C#/frmOptions.Designer.cs
@@ -500,7 +500,7 @@ namespace Handbrake
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(131, 13);
this.label8.TabIndex = 61;
- this.label8.Text = "Handbrake Options";
+ this.label8.Text = "HandBrake Options";
//
// pictureBox2
//
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs
index 21dfa6505..8ecedc8dd 100644
--- a/win/C#/frmReadDVD.cs
+++ b/win/C#/frmReadDVD.cs
@@ -75,7 +75,7 @@ namespace Handbrake
throw new Exception("Unable to retrieve the DVD Info. dvdinfo.dat is missing. \nExpected location of dvdinfo.dat: \n" + dvdInfoPath);
}
- using (StreamReader sr = new StreamReader(dvdInfoPath))
+ using (StreamReader sr = new StreamReader("c:\\dvdinfo.dat"))
{
thisDvd = Parsing.DVD.Parse(sr);
sr.Close();