From 4715027b7977ccfec3d57f7cad429f7e5b93e282 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 7 Apr 2008 17:57:14 +0000 Subject: 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 --- win/C#/Functions/Common.cs | 14 +++++++------- win/C#/Functions/QueryParser.cs | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'win/C#') 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"; -- cgit v1.2.3