diff options
author | sr55 <[email protected]> | 2011-12-22 13:51:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-12-22 13:51:47 +0000 |
commit | 6740c61c06849457c4b56066aab72a13fdc929da (patch) | |
tree | 65f797239fd1d2881bb82cc0882fc2b0d1f78724 /win/CS/HandBrake.ApplicationServices | |
parent | 9e27a33d401a46f0e91d5693df6dd20788340e2d (diff) |
WinGui: Fix the Query Parser for x264 preset options.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4382 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs index 9a8498e95..e709add79 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs @@ -293,7 +293,9 @@ namespace HandBrake.ApplicationServices.Utilities #region Video Settings Tab
- parsed.VideoEncoder = Converters.GetVideoEncoder(videoEncoder.ToString().Replace("-e ", string.Empty));
+ parsed.VideoEncoder = videoEncoder.Success
+ ? Converters.GetVideoEncoder(videoEncoder.ToString().Replace("-e ", string.Empty))
+ : VideoEncoder.FFMpeg;
if (videoFramerate.Success)
{
@@ -418,12 +420,12 @@ namespace HandBrake.ApplicationServices.Utilities Converters.Getx264PresetFromCli(x264Preset.ToString().Replace("--x264-preset", string.Empty).Replace("=", string.Empty).Trim());
if (x264Profile.Success)
- parsed.x264Preset =
- Converters.Getx264PresetFromCli(x264Profile.ToString().Replace("--x264-profile", string.Empty).Replace("=", string.Empty).Trim());
+ parsed.x264Profile =
+ Converters.Getx264ProfileFromCli(x264Profile.ToString().Replace("--x264-profile", string.Empty).Replace("=", string.Empty).Trim());
if (x264Tune.Success)
- parsed.x264Preset =
- Converters.Getx264PresetFromCli(x264Tune.ToString().Replace("--x264-tune", string.Empty).Replace("=", string.Empty).Trim());
+ parsed.X264Tune =
+ Converters.Getx264TuneFromCli(x264Tune.ToString().Replace("--x264-tune", string.Empty).Replace("=", string.Empty).Trim());
#endregion
}
|