summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Functions/QueryParser.cs')
-rw-r--r--win/C#/Functions/QueryParser.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs
index 6c1d768d5..df048c5d1 100644
--- a/win/C#/Functions/QueryParser.cs
+++ b/win/C#/Functions/QueryParser.cs
@@ -663,6 +663,7 @@ namespace Handbrake.Functions
Match optimizeMP4 = Regex.Match(input, @" -O");
//Audio Settings Tab
+ Match noAudio = Regex.Match(input, @"-a none");
Match audioTrack1 = Regex.Match(input, @"-a ([0-9]*)");
Match audioTrack2 = Regex.Match(input, @"-a ([0-9]*),([0-9]*)");
Match audioTrack3 = Regex.Match(input, @"-a ([0-9]*),([0-9]*),([0-9]*)");
@@ -877,7 +878,10 @@ namespace Handbrake.Functions
#region Audio Tab
// Tracks
- thisQuery.q_audioTrack1 = "Automatic";
+ if (noAudio.Success)
+ thisQuery.q_audioTrack1 = "None";
+ else if (audioTrack1.Success)
+ thisQuery.q_audioTrack1 = "Automatic";
if (audioTrack2.Success)
{