diff options
Diffstat (limited to 'win/C#/Functions')
-rw-r--r-- | win/C#/Functions/Common.cs | 14 | ||||
-rw-r--r-- | win/C#/Functions/QueryParser.cs | 13 | ||||
-rw-r--r-- | win/C#/Functions/RssReader.cs | 1 |
3 files changed, 20 insertions, 8 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");
}
//
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();
}
diff --git a/win/C#/Functions/RssReader.cs b/win/C#/Functions/RssReader.cs index ec461a402..bf9a1f5ca 100644 --- a/win/C#/Functions/RssReader.cs +++ b/win/C#/Functions/RssReader.cs @@ -24,7 +24,6 @@ namespace Handbrake.Functions XmlNode nodeRss;
XmlNode nodeChannel;
XmlNode nodeItem;
- string t;
private void readRss()
{
|