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/Common.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/Common.cs')
-rw-r--r-- | win/C#/Functions/Common.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index 61bd8e5a1..0e772cfb3 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -855,14 +855,14 @@ namespace Handbrake.Functions //Audio Sample Rate - audioSampleRate
if (audioSampleRate1 != "")
- audioSampleRate = " -R " + audioSampleRate1;
+ audioSampleRate = " -R " + audioSampleRate1.Replace("Auto", "0");
if (audioSampleRate2 != "")
{
if (audioSampleRate == "")
- audioSampleRate = " -R 48," + audioSampleRate2;
+ audioSampleRate = " -R 0," + audioSampleRate2.Replace("Auto", "0");
else
- audioSampleRate = audioSampleRate + "," + audioSampleRate2;
+ audioSampleRate = audioSampleRate + "," + audioSampleRate2.Replace("Auto", "0");
}
else
{
@@ -872,21 +872,21 @@ namespace Handbrake.Functions if ((track2 != "") && (track2 != "None"))
{
if (audioSampleRate == "")
- audioSampleRate = " -R 48,48";
+ audioSampleRate = " -R 0,0";
else
- audioSampleRate = audioSampleRate + ",48";
+ audioSampleRate = audioSampleRate + ",0";
}
}
if (audioSampleRate3 != "")
{
- audioSampleRate = audioSampleRate + "," + audioSampleRate3;
+ audioSampleRate = audioSampleRate + "," + audioSampleRate3.Replace("Auto", "0");
}
if (audioSampleRate4 != "")
{
- audioSampleRate = audioSampleRate + "," + audioSampleRate4;
+ audioSampleRate = audioSampleRate + "," + audioSampleRate4.Replace("Auto", "0");
}
//
|