summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/C#/Functions/Common.cs14
-rw-r--r--win/C#/Functions/QueryParser.cs6
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";