diff options
author | sr55 <[email protected]> | 2009-11-03 16:17:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-11-03 16:17:14 +0000 |
commit | 7f3a75872a71513a8331d480dc920a515aaf91a7 (patch) | |
tree | f5953f838df9d18866b43484971eae00a75c42a0 /win/C# | |
parent | 13c59b8795454b36fb87eacf21979628aee25c93 (diff) |
WinGui:
- Fix issue with weightb option on the x264 panel.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2912 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/Controls/x264Panel.cs | 11 | ||||
-rw-r--r-- | win/C#/frmOptions.Designer.cs | 5 |
2 files changed, 9 insertions, 7 deletions
diff --git a/win/C#/Controls/x264Panel.cs b/win/C#/Controls/x264Panel.cs index 6df49e744..4229c8298 100644 --- a/win/C#/Controls/x264Panel.cs +++ b/win/C#/Controls/x264Panel.cs @@ -349,7 +349,10 @@ namespace Handbrake.Controls drop_adaptBFrames.SelectedIndex = (badapt + 1);
continue;
case "weightb":
- check_weightedBFrames.CheckState = CheckState.Checked;
+ if (optValue != "0")
+ check_weightedBFrames.CheckState = CheckState.Checked;
+ else
+ check_weightedBFrames.CheckState = CheckState.Unchecked;
continue;
case "b-pyramid":
check_pyrmidalBFrames.CheckState = CheckState.Checked;
@@ -521,7 +524,7 @@ namespace Handbrake.Controls else if (optNameToChange.Equals("mixed-refs"))
thisOpt = check_mixedReferences.CheckState == CheckState.Checked ? "mixed-refs=1" : "mixed-refs=0";
else if (optNameToChange.Equals("weightb"))
- thisOpt = check_weightedBFrames.CheckState == CheckState.Checked ? "weightb=1" : "";
+ thisOpt = check_weightedBFrames.CheckState == CheckState.Checked ? "" : "weightb=0";
else if (optNameToChange.Equals("b-pyramid"))
thisOpt = check_pyrmidalBFrames.CheckState == CheckState.Checked ? "b-pyramid=1" : "";
else if (optNameToChange.Equals("no-fast-pskip"))
@@ -791,8 +794,8 @@ namespace Handbrake.Controls }
else if (optNameToChange.Equals("weightb"))
{
- if (check_weightedBFrames.CheckState == CheckState.Checked)
- query = query + colon + "weightb=1";
+ if (check_weightedBFrames.CheckState != CheckState.Checked)
+ query = query + colon + "weightb=0";
}
else if (optNameToChange.Equals("b-pyramid"))
{
diff --git a/win/C#/frmOptions.Designer.cs b/win/C#/frmOptions.Designer.cs index 5e9e23faa..85c5e1d0e 100644 --- a/win/C#/frmOptions.Designer.cs +++ b/win/C#/frmOptions.Designer.cs @@ -263,10 +263,9 @@ namespace Handbrake this.check_m4v.AutoSize = true;
this.check_m4v.Location = new System.Drawing.Point(108, 279);
this.check_m4v.Name = "check_m4v";
- this.check_m4v.Size = new System.Drawing.Size(423, 17);
+ this.check_m4v.Size = new System.Drawing.Size(319, 17);
this.check_m4v.TabIndex = 82;
- this.check_m4v.Text = "Use iPod/iTunes friendly file extension (.m4v) for MP4 (See tooltip for more deta" +
- "ils)";
+ this.check_m4v.Text = "Always use iPod/iTunes friendly file extension (.m4v) for MP4";
this.ToolTip.SetToolTip(this.check_m4v, resources.GetString("check_m4v.ToolTip"));
this.check_m4v.UseVisualStyleBackColor = true;
this.check_m4v.CheckedChanged += new System.EventHandler(this.check_m4v_CheckedChanged);
|