diff options
author | sr55 <[email protected]> | 2008-04-07 17:57:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-04-07 17:57:14 +0000 |
commit | 4715027b7977ccfec3d57f7cad429f7e5b93e282 (patch) | |
tree | d700ff44199f9ed779c75ac044502a9d0c96a295 /win/C# | |
parent | 46b65ab8b6928b8e8406b41deba949c2bf8c5c69 (diff) |
WinGui:
- Fixed bug in query parser and preset code. Deinterlace option with " wraped around the value caused issues.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1387 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/Functions/Common.cs | 14 | ||||
-rw-r--r-- | win/C#/Functions/QueryParser.cs | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index 172dad5fe..184fadb30 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -500,16 +500,16 @@ namespace Handbrake.Functions deinterlace = "";
break;
case "Fast":
- deinterlace = " --deinterlace=fast";
+ deinterlace = " --deinterlace=\"fast\"";
break;
case "Slow":
- deinterlace = " --deinterlace=slow";
+ deinterlace = " --deinterlace=\"slow\"";
break;
case "Slower":
- deinterlace = " --deinterlace=slower";
+ deinterlace = " --deinterlace=\"slower\"";
break;
case "Slowest":
- deinterlace = " --deinterlace=slowest";
+ deinterlace = " --deinterlace=\"slowest\"";
break;
default:
deinterlace = "";
@@ -601,13 +601,13 @@ namespace Handbrake.Functions denoise = "";
break;
case "Weak":
- denoise = " --denoise=weak";
+ denoise = " --denoise=\"weak\"";
break;
case "Medium":
- denoise = " --denoise=medium";
+ denoise = " --denoise=\"medium\"";
break;
case "Strong":
- denoise = " --denoise=strong";
+ denoise = " --denoise=\"strong\"";
break;
default:
denoise = "";
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs index 6a39e0205..1599bdbcf 100644 --- a/win/C#/Functions/QueryParser.cs +++ b/win/C#/Functions/QueryParser.cs @@ -634,8 +634,8 @@ namespace Handbrake.Functions //Picture Settings Tab
Match width = Regex.Match(input, @"-w ([0-9]*)");
Match height = Regex.Match(input, @"-l ([0-9]*)");
- Match deinterlace = Regex.Match(input, @"--deinterlace=([a-z]*)");
- Match denoise = Regex.Match(input, @"--denoise=([a-z]*)");
+ Match deinterlace = Regex.Match(input, @"--deinterlace=\""([a-zA-Z]*)\""");
+ Match denoise = Regex.Match(input, @"--denoise=\""([a-zA-Z]*)\""");
Match deblock = Regex.Match(input, @"--deblock");
Match detelecine = Regex.Match(input, @"--detelecine");
Match anamorphic = Regex.Match(input, @"-p ");
@@ -775,7 +775,7 @@ namespace Handbrake.Functions thisQuery.q_deinterlace = "None";
if (deinterlace.Success != false)
{
- switch (deinterlace.ToString().Replace("--deinterlace=", ""))
+ switch (deinterlace.ToString().Replace("--deinterlace=", "").Replace("\"",""))
{
case "fast":
thisQuery.q_deinterlace = "Fast";
|