OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 18 Sep 2008 16:51:49 +0000 (16:51 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 18 Sep 2008 16:51:49 +0000 (16:51 +0000)
- Couple of bug fixes. Crop, -f option, typo

git-svn-id: svn://localhost/HandBrake/trunk@1717 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Functions/Common.cs
win/C#/Parsing/Title.cs
win/C#/frmOptions.Designer.cs
win/C#/frmReadDVD.cs

index 8ef4b3b..01c3378 100644 (file)
@@ -108,26 +108,7 @@ namespace Handbrake.Functions
 \r
             // Picture Settings Tab\r
             #region Picture\r
-\r
-            if (presetQuery.CropTop == "0" && presetQuery.CropBottom == "0" && presetQuery.CropLeft == "0" && presetQuery.CropRight == "0")\r
-            {\r
-                mainWindow.check_customCrop.Checked = true;\r
-                mainWindow.text_top.Text = "0";\r
-                mainWindow.text_bottom.Text = "0";\r
-                mainWindow.text_left.Text = "0";\r
-                mainWindow.text_right.Text = "0";\r
-            }\r
-            else if (presetQuery.CropTop != null && presetQuery.CropBottom != null && presetQuery.CropLeft != null && presetQuery.CropRight != null)\r
-            {\r
-                mainWindow.check_customCrop.Checked = true;\r
-                mainWindow.text_top.Text = presetQuery.CropTop;\r
-                mainWindow.text_bottom.Text = presetQuery.CropBottom;\r
-                mainWindow.text_left.Text = presetQuery.CropLeft;\r
-                mainWindow.text_right.Text = presetQuery.CropRight;\r
-            }\r
-            else\r
-                mainWindow.check_autoCrop.Checked = true;\r
-\r
+            mainWindow.check_autoCrop.Checked = true;\r
             mainWindow.drp_deInterlace_option.Text = presetQuery.DeInterlace;\r
             mainWindow.drp_deNoise.Text = presetQuery.DeNoise;\r
 \r
@@ -499,6 +480,8 @@ namespace Handbrake.Functions
         {\r
             string query = "";\r
 \r
+            query += " -f " + mainWindow.drop_format.Text.ToLower().Replace(" file", "");\r
+\r
             // Picture Settings Tab\r
             #region Picture Settings Tab\r
 \r
index f819ab1..a2205fc 100644 (file)
@@ -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\r
                  */\r
 \r
-                if ((char)sr.Peek() != '[' && (char)sr.Peek() != '+' && (char)sr.Peek() != null) // Hack, Fix later\r
+                if ((char)sr.Peek() != '[' && (char)sr.Peek() != '+' ) // Hack, Fix later\r
                     sr.ReadLine();\r
             }\r
 \r
index 7555735..3ee7e5c 100644 (file)
@@ -500,7 +500,7 @@ namespace Handbrake
             this.label8.Name = "label8";\r
             this.label8.Size = new System.Drawing.Size(131, 13);\r
             this.label8.TabIndex = 61;\r
-            this.label8.Text = "Handbrake Options";\r
+            this.label8.Text = "HandBrake Options";\r
             // \r
             // pictureBox2\r
             // \r
index 21dfa65..8ecedc8 100644 (file)
@@ -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);\r
                 }\r
 \r
-                using (StreamReader sr = new StreamReader(dvdInfoPath))\r
+                using (StreamReader sr = new StreamReader("c:\\dvdinfo.dat"))\r
                 {\r
                     thisDvd = Parsing.DVD.Parse(sr);\r
                     sr.Close();\r