OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 1 Feb 2009 19:58:44 +0000 (19:58 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 1 Feb 2009 19:58:44 +0000 (19:58 +0000)
- Remove old restriction on loose anamorphic.
- Fix an issue with the new audio panel which would allow incompatible audio codecs with containers.

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

win/C#/frmMain.cs

index 00e5515..4cad195 100644 (file)
@@ -1029,8 +1029,6 @@ namespace Handbrake
                     check_iPodAtom.Enabled = true;\r
                 else\r
                     check_iPodAtom.Enabled = false;\r
-                if (!drp_anamorphic.Items.Contains("Loose"))\r
-                    drp_anamorphic.Items.Add("Loose");\r
             }\r
             else\r
             {\r
@@ -1040,8 +1038,6 @@ namespace Handbrake
                 rtf_x264Query.Text = "";\r
                 check_iPodAtom.Enabled = false;\r
                 check_iPodAtom.Checked = false;\r
-                if (drp_anamorphic.Items.Count == 3)\r
-                    drp_anamorphic.Items.RemoveAt(2);\r
             }\r
 \r
         }\r
@@ -1771,6 +1767,13 @@ namespace Handbrake
                 if (drp_audenc_1.Text == string.Empty)\r
                     drp_audenc_1.SelectedIndex = 0;\r
             }\r
+\r
+            // Make sure the table is updated with new audio codecs\r
+            foreach (ListViewItem row in lv_audioList.Items)\r
+            {\r
+                if (!drp_audenc_1.Items.Contains(row.SubItems[1].Text))\r
+                    row.SubItems[1].Text = drp_audenc_1.Items[0].ToString();\r
+            }\r
         }\r
         private void setVideoByContainer(String path)\r
         {\r