diff options
-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));
|