diff options
author | sr55 <[email protected]> | 2008-06-12 17:54:15 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-06-12 17:54:15 +0000 |
commit | 3c3dd120dc58da16f237887f29d1251489a1af92 (patch) | |
tree | 293c0714e4807984e78a152f80dd786b8ad4818f /win/C#/Functions/QueryParser.cs | |
parent | 01d77f0e0f6a196de290110a14b965588cdc75e2 (diff) |
WinGui:
- Setup Auto for Audio Sample Rate. (Passes 0 to CLI when set to Auto.)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1510 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryParser.cs')
-rw-r--r-- | win/C#/Functions/QueryParser.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs index 87c1def3e..ae5d39cb9 100644 --- a/win/C#/Functions/QueryParser.cs +++ b/win/C#/Functions/QueryParser.cs @@ -1133,24 +1133,37 @@ namespace Handbrake.Functions // Audio Sample Rate
+ // Make sure to change 0 to Auto
if (audioSampleRate1.Success != false)
+ {
thisQuery.q_audioSamplerate1 = audioSampleRate1.ToString().Replace("-R ", "").Trim();
+ if (thisQuery.q_audioSamplerate1 == "0")
+ thisQuery.q_audioSamplerate1 = "Auto";
+ }
+ else
+ thisQuery.q_audioSamplerate1 = "Auto";
if (audioSampleRate2.Success != false)
{
string[] audioSRSelect = audioSampleRate2.ToString().Split(',');
+ if (audioSRSelect[1] == "0")
+ audioSRSelect[1] = "Auto";
thisQuery.q_audioSamplerate2 = audioSRSelect[1].Trim();
}
if (audioSampleRate3.Success != false)
{
string[] audioSRSelect = audioSampleRate3.ToString().Split(',');
+ if (audioSRSelect[1] == "0")
+ audioSRSelect[1] = "Auto";
thisQuery.q_audioSamplerate3 = audioSRSelect[2].Trim();
}
if (audioSampleRate4.Success != false)
{
string[] audioSRSelect = audioSampleRate4.ToString().Split(',');
+ if (audioSRSelect[1] == "0")
+ audioSRSelect[1] = "Auto";
thisQuery.q_audioSamplerate4 = audioSRSelect[3].Trim();
}
|