diff options
author | sr55 <[email protected]> | 2011-04-21 12:51:01 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-04-21 12:51:01 +0000 |
commit | 4c783fb39de446352e20ce75a28ce7d331b9ebb8 (patch) | |
tree | e3e5b279c142df6586ada08bfe7d5a8780b9146e /win/CS/Functions | |
parent | f4f14d602bca8e98f817f47ce3f43ea1f5b76242 (diff) |
WinGui:
- Fix an issue with the Advanced options not being passed through to the CLI correctly.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3945 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Functions')
-rw-r--r-- | win/CS/Functions/QueryGenerator.cs | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs index 975a2a5c3..2c9019049 100644 --- a/win/CS/Functions/QueryGenerator.cs +++ b/win/CS/Functions/QueryGenerator.cs @@ -358,7 +358,7 @@ namespace Handbrake.Functions {
// If we use Same as Source, we can either output CFR or VFR
query += mainWindow.radio_constantFramerate.Checked ? " --cfr " : " --vfr ";
- }
+ }
else
{
// We have a hard framerate set, so we can either be Constant or peak (VFR) framerate
@@ -457,21 +457,17 @@ namespace Handbrake.Functions private static string X264Query(frmMain mainWindow)
{
string advancedOptions = string.Empty;
- switch (mainWindow.drp_videoEncoder.SelectedIndex)
+ if (mainWindow.drp_videoEncoder.SelectedItem.ToString().Contains("FFmpeg"))
{
- case 0: // ffmpeg
- advancedOptions = string.IsNullOrEmpty(mainWindow.advancedEncoderOpts.AdavancedQuery.Trim())
- ? string.Empty
- : mainWindow.advancedEncoderOpts.AdavancedQuery;
- break;
- case 1: // x264
- advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query.Trim())
- ? string.Empty
- : mainWindow.x264Panel.X264Query;
- break;
- case 2: // VP3
- advancedOptions = string.Empty;
- break;
+ advancedOptions = string.IsNullOrEmpty(mainWindow.advancedEncoderOpts.AdavancedQuery.Trim())
+ ? string.Empty
+ : mainWindow.advancedEncoderOpts.AdavancedQuery;
+ }
+ else if (mainWindow.drp_videoEncoder.SelectedItem.ToString().Contains("x264"))
+ {
+ advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query.Trim())
+ ? string.Empty
+ : mainWindow.x264Panel.X264Query;
}
return !string.IsNullOrEmpty(advancedOptions) ? " -x " + advancedOptions : string.Empty;
|