summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryParser.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-04-07 17:57:14 +0000
committersr55 <[email protected]>2008-04-07 17:57:14 +0000
commit4715027b7977ccfec3d57f7cad429f7e5b93e282 (patch)
treed700ff44199f9ed779c75ac044502a9d0c96a295 /win/C#/Functions/QueryParser.cs
parent46b65ab8b6928b8e8406b41deba949c2bf8c5c69 (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#/Functions/QueryParser.cs')
-rw-r--r--win/C#/Functions/QueryParser.cs6
1 files changed, 3 insertions, 3 deletions
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";