}\r
break;\r
case "drp_audioEncoder":\r
- SetMixDown();\r
- SetBitrate();\r
+ SetMixDown(EnumHelper<Mixdown>.GetDescription(track.MixDown));\r
\r
// Configure the widgets with values\r
if (drp_audioEncoder.Text.Contains(AC3Passthru) || drp_audioEncoder.Text.Contains(DTSPassthru))\r
// Update an item in the Audio list if required.\r
track.Encoder = EnumHelper<AudioEncoder>.GetValue(drp_audioEncoder.Text);\r
\r
- // Just make sure we don't have the wrong mixdown set, if we do fix it.\r
- if (track.MixDown == HandBrake.ApplicationServices.Model.Encoding.Mixdown.Ac3Passthrough || track.MixDown == HandBrake.ApplicationServices.Model.Encoding.Mixdown.DtsPassthrough)\r
- {\r
- if (track.Encoder != AudioEncoder.Ac3Passthrough && track.Encoder != AudioEncoder.DtsPassthrough)\r
- {\r
- drp_audioMix.SelectedItem = "Dolby Pro Logic II";\r
- }\r
- }\r
+ //// Just make sure we don't have the wrong mixdown set, if we do fix it.\r
+ //if (track.MixDown == HandBrake.ApplicationServices.Model.Encoding.Mixdown.Ac3Passthrough || track.MixDown == HandBrake.ApplicationServices.Model.Encoding.Mixdown.DtsPassthrough)\r
+ //{\r
+ // if (track.Encoder != AudioEncoder.Ac3Passthrough && track.Encoder != AudioEncoder.DtsPassthrough)\r
+ // {\r
+ // drp_audioMix.SelectedItem = "Dolby Pro Logic II";\r
+ // }\r
+ //}\r
break;\r
case "drp_audioMix":\r
SetBitrate();\r
\r
- track.MixDown = EnumHelper<Mixdown>.GetValue(drp_audioMix.Text);\r
+ if (drp_audioMix.SelectedItem != null)\r
+ {\r
+ track.MixDown = EnumHelper<Mixdown>.GetValue(drp_audioMix.Text);\r
+ }\r
\r
break;\r
case "drp_audioSample":\r
/// <summary>\r
/// Set the mixdown dropdown\r
/// </summary>\r
- private void SetMixDown()\r
+ /// <param name="currentMixdown">\r
+ /// The current Mixdown.\r
+ /// </param>\r
+ private void SetMixDown(string currentMixdown)\r
{\r
drp_audioMix.Items.Clear();\r
drp_audioMix.Items.Add("Mono");\r
case "AAC (faac)":\r
drp_audioMix.Items.Remove(AC3Passthru);\r
drp_audioMix.Items.Remove(DTSPassthru);\r
+ drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";\r
break;\r
case "MP3 (lame)":\r
drp_audioMix.Items.Remove("6 Channel Discrete");\r
drp_audioMix.Items.Remove(AC3Passthru);\r
drp_audioMix.Items.Remove(DTSPassthru);\r
+ drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";\r
break;\r
case "Vorbis (vorbis)":\r
drp_audioMix.Items.Remove(AC3Passthru);\r
drp_audioMix.Items.Remove(DTSPassthru);\r
+ drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";\r
break;\r
case "AC3 (ffmpeg)":\r
drp_audioMix.Items.Remove(AC3Passthru);\r
drp_audioMix.Items.Remove(DTSPassthru);\r
+ drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";\r
break;\r
case "AC3 Passthru":\r
drp_audioMix.SelectedItem = AC3Passthru;\r
drp_audioMix.SelectedItem = DTSPassthru;\r
break;\r
}\r
+\r
+ if (drp_audioMix.SelectedItem == null)\r
+ {\r
+ drp_audioMix.SelectedItem = "Dolby Pro Logic II";\r
+ }\r
}\r
\r
#endregion\r
this.check_turbo.Enabled = false;\r
this.check_turbo.Location = new System.Drawing.Point(495, 134);\r
this.check_turbo.Name = "check_turbo";\r
- this.check_turbo.Size = new System.Drawing.Size(99, 17);\r
+ this.check_turbo.Size = new System.Drawing.Size(101, 17);\r
this.check_turbo.TabIndex = 9;\r
this.check_turbo.Text = "Turbo first Pass";\r
this.ToolTip.SetToolTip(this.check_turbo, "Makes the first pass of a 2 pass encode faster.");\r
this.radio_cq.BackColor = System.Drawing.Color.Transparent;\r
this.radio_cq.Location = new System.Drawing.Point(366, 37);\r
this.radio_cq.Name = "radio_cq";\r
- this.radio_cq.Size = new System.Drawing.Size(105, 17);\r
+ this.radio_cq.Size = new System.Drawing.Size(110, 17);\r
this.radio_cq.TabIndex = 3;\r
this.radio_cq.Text = "Constant Quality:";\r
this.ToolTip.SetToolTip(this.radio_cq, resources.GetString("radio_cq.ToolTip"));\r
this.radio_avgBitrate.Checked = true;\r
this.radio_avgBitrate.Location = new System.Drawing.Point(367, 108);\r
this.radio_avgBitrate.Name = "radio_avgBitrate";\r
- this.radio_avgBitrate.Size = new System.Drawing.Size(112, 17);\r
+ this.radio_avgBitrate.Size = new System.Drawing.Size(116, 17);\r
this.radio_avgBitrate.TabIndex = 4;\r
this.radio_avgBitrate.TabStop = true;\r
this.radio_avgBitrate.Text = "Avg Bitrate (kbps):";\r
this.check_2PassEncode.BackColor = System.Drawing.Color.Transparent;\r
this.check_2PassEncode.Location = new System.Drawing.Point(385, 134);\r
this.check_2PassEncode.Name = "check_2PassEncode";\r
- this.check_2PassEncode.Size = new System.Drawing.Size(106, 17);\r
+ this.check_2PassEncode.Size = new System.Drawing.Size(104, 17);\r
this.check_2PassEncode.TabIndex = 10;\r
this.check_2PassEncode.Text = "2-Pass Encoding";\r
this.ToolTip.SetToolTip(this.check_2PassEncode, resources.GetString("check_2PassEncode.ToolTip"));\r
this.radio_constantFramerate.Checked = true;\r
this.radio_constantFramerate.Location = new System.Drawing.Point(0, 0);\r
this.radio_constantFramerate.Name = "radio_constantFramerate";\r
- this.radio_constantFramerate.Size = new System.Drawing.Size(117, 17);\r
+ this.radio_constantFramerate.Size = new System.Drawing.Size(122, 17);\r
this.radio_constantFramerate.TabIndex = 17;\r
this.radio_constantFramerate.TabStop = true;\r
this.radio_constantFramerate.Text = "Constant Framerate";\r
this.radio_peakAndVariable.BackColor = System.Drawing.Color.Transparent;\r
this.radio_peakAndVariable.Location = new System.Drawing.Point(0, 23);\r
this.radio_peakAndVariable.Name = "radio_peakAndVariable";\r
- this.radio_peakAndVariable.Size = new System.Drawing.Size(113, 17);\r
+ this.radio_peakAndVariable.Size = new System.Drawing.Size(116, 17);\r
this.radio_peakAndVariable.TabIndex = 19;\r
this.radio_peakAndVariable.Text = "Variable Framerate";\r
this.radio_peakAndVariable.UseVisualStyleBackColor = false;\r
this.Check_ChapterMarkers.BackColor = System.Drawing.Color.Transparent;\r
this.Check_ChapterMarkers.Location = new System.Drawing.Point(16, 32);\r
this.Check_ChapterMarkers.Name = "Check_ChapterMarkers";\r
- this.Check_ChapterMarkers.Size = new System.Drawing.Size(136, 17);\r
+ this.Check_ChapterMarkers.Size = new System.Drawing.Size(140, 17);\r
this.Check_ChapterMarkers.TabIndex = 4;\r
this.Check_ChapterMarkers.Text = "Create chapter markers";\r
this.Check_ChapterMarkers.UseVisualStyleBackColor = false;\r
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
<value>98</value>\r
</metadata>\r
- <metadata name="File_Save.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
- <value>664, 15</value>\r
- </metadata>\r
- <metadata name="openPreset.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
- <value>310, 54</value>\r
- </metadata>\r
- <metadata name="File_ChapterImport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
- <value>423, 54</value>\r
- </metadata>\r
- <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
- <value>98</value>\r
- </metadata>\r
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
<value>\r
AAABAAYAMDAAAAEACACoDgAAZgAAACAgAAABAAgAqAgAAA4PAAAQEAAAAQAIAGgFAAC2FwAAMDAAAAEA\r
AAD6AQAA4AEAAMABAACAAQAAgAEAAMBBAADAYQAAjGEAAIRhAADc+wAA3/8AAA==\r
</value>\r
</data>\r
+ <metadata name="File_Save.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+ <value>664, 15</value>\r
+ </metadata>\r
+ <metadata name="openPreset.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+ <value>310, 54</value>\r
+ </metadata>\r
+ <metadata name="File_ChapterImport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+ <value>423, 54</value>\r
+ </metadata>\r
</root>
\ No newline at end of file