summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-03-18 14:36:15 +0000
committersr55 <[email protected]>2012-03-18 14:36:15 +0000
commit5cc5a0f9aef4339312d474399207b71cb815b9ff (patch)
tree97a3225a8c4f0bc6677053d3db472b13cba70e60 /win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
parent49020e219f4c3db356b599750f053520b5f089b6 (diff)
WinGui: (WPF) Numerous fixes / UI tweaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4511 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
index 35cf3a38e..d46296244 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
@@ -237,10 +237,10 @@ namespace HandBrake.ApplicationServices.Utilities
if (task.Anamorphic != Anamorphic.Strict)
{
if (task.MaxWidth.HasValue) query += string.Format(" -X {0}", task.MaxWidth);
- else if (task.Width.HasValue) query += string.Format(" -w {0}", task.Width);
+ else if (task.Width.HasValue && task.Width != 0) query += string.Format(" -w {0}", task.Width);
if (task.MaxWidth.HasValue) query += string.Format(" -Y {0}", task.MaxHeight);
- else if (task.Height.HasValue) query += string.Format(" -h {0}", task.Height);
+ else if (task.Height.HasValue && task.Height != 0) query += string.Format(" -h {0}", task.Height);
}
if (task.HasCropping)
@@ -536,7 +536,7 @@ namespace HandBrake.ApplicationServices.Utilities
firstLoop = false;
}
else
- audioItems += "," + item;
+ audioItems += "," + Converters.GetCliAudioEncoder(item);
}
if (audioItems.Trim() != String.Empty)
query += " -E " + audioItems;
@@ -552,7 +552,7 @@ namespace HandBrake.ApplicationServices.Utilities
firstLoop = false;
}
else
- audioItems += "," + item;
+ audioItems += "," + Converters.GetCliMixDown(item);
}
if (audioItems.Trim() != String.Empty)
query += " -6 " + audioItems;