summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-06-07 18:21:44 +0000
committersr55 <[email protected]>2011-06-07 18:21:44 +0000
commit87e093a0582acfd32b9d59cd3eda94fb9129b4a2 (patch)
tree8857ed4e29dcce317166ab63ba716bb818c782d6
parent2e50209258e4fb103798e099945cb68ac71c97c2 (diff)
WinGui: Update the Audio Track name handling code to work with the CLI fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4026 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/CS/Functions/QueryGenerator.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs
index 027ad024b..acbc7a3f1 100644
--- a/win/CS/Functions/QueryGenerator.cs
+++ b/win/CS/Functions/QueryGenerator.cs
@@ -433,8 +433,8 @@ namespace Handbrake.Functions
gainValues += string.IsNullOrEmpty(gainValues) ? audioTrack.Gain.ToString(Culture) : string.Format(",{0}", audioTrack.Gain.ToString(Culture));
trackNames += string.IsNullOrEmpty(trackNames)
- ? string.IsNullOrEmpty(audioTrack.TrackName) ? "\" \"" : string.Format("\"{0}\"", audioTrack.TrackName.Trim())
- : string.IsNullOrEmpty(audioTrack.TrackName) ? ",\" \"" : string.Format(",\"{0}\"", audioTrack.TrackName.Trim());
+ ? string.IsNullOrEmpty(audioTrack.TrackName) ? "\"\"" : string.Format("\"{0}\"", audioTrack.TrackName.Trim())
+ : string.IsNullOrEmpty(audioTrack.TrackName) ? ",\"\"" : string.Format(",\"{0}\"", audioTrack.TrackName.Trim());
}
string audioQuery = string.Format(
@@ -447,7 +447,7 @@ namespace Handbrake.Functions
drvValues,
gainValues);
- if (!string.IsNullOrEmpty(trackNames.Trim()) && trackNames.Trim() != ",")
+ if (!string.IsNullOrEmpty(trackNames.Trim()) && !string.IsNullOrEmpty(trackNames.Replace("\"", string.Empty).Replace(",", string.Empty).Trim()))
{
audioQuery += string.Format(" --aname={0}", trackNames);
}