diff options
author | sr55 <[email protected]> | 2011-05-10 18:54:28 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-05-10 18:54:28 +0000 |
commit | c9515e922e6061b16f7edd3559be69aeacba51d9 (patch) | |
tree | ae1a4446c4772b345f1cf763cbba2ea63fc25c0a /win/CS | |
parent | 438c46cc940f3b93d8fa6e0329677e6fef48af90 (diff) |
WinGui:
- Couple of cosmetic fixes to the CLI Query that's generated.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3977 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/Controls/AudioPanel.cs | 2 | ||||
-rw-r--r-- | win/CS/Functions/QueryGenerator.cs | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs index 7a63f7803..b946163fe 100644 --- a/win/CS/Controls/AudioPanel.cs +++ b/win/CS/Controls/AudioPanel.cs @@ -160,11 +160,13 @@ namespace Handbrake.Controls if (track.Encoder == AudioEncoder.Ac3Passthrough)
{
track.MixDown = HandBrake.ApplicationServices.Model.Encoding.Mixdown.Ac3Passthrough;
+ track.Bitrate = 0;
}
if (track.Encoder == AudioEncoder.DtsPassthrough)
{
track.MixDown = HandBrake.ApplicationServices.Model.Encoding.Mixdown.DtsPassthrough;
+ track.Bitrate = 0;
}
this.audioTracks.Add(track);
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs index 7f1f06f55..435624249 100644 --- a/win/CS/Functions/QueryGenerator.cs +++ b/win/CS/Functions/QueryGenerator.cs @@ -172,6 +172,11 @@ namespace Handbrake.Functions {
string query = string.Empty;
+ if (string.IsNullOrEmpty(mainWindow.text_destination.Text))
+ {
+ return string.Empty;
+ }
+
if (mode != QueryEncodeMode.Preview)
query += string.Format(" -o \"{0}\" ", mainWindow.text_destination.Text);
else
@@ -411,7 +416,9 @@ namespace Handbrake.Functions samplerates += string.IsNullOrEmpty(samplerates) ? rate : string.Format(",{0}", rate);
// Audio Bitrates (-B)
- bitrates += string.IsNullOrEmpty(bitrates) ? audioTrack.Bitrate.ToString(Culture) : string.Format(",{0}", audioTrack.Bitrate);
+ bitrates += string.IsNullOrEmpty(bitrates)
+ ? audioTrack.Bitrate.ToString(Culture)
+ : string.Format(",{0}", audioTrack.Bitrate);
// Audio DRC Values
drvValues += string.IsNullOrEmpty(drvValues) ? audioTrack.DRC.ToString(Culture) : string.Format(",{0}", audioTrack.DRC.ToString(Culture));
|