diff options
author | sr55 <[email protected]> | 2009-02-06 22:02:23 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-02-06 22:02:23 +0000 |
commit | c33b94692d6d9c7a609ace7cdb91da937de67775 (patch) | |
tree | 476cae4ae319d762f914157273d898ba24e8bd6e /win/C#/frmMain/QueryGenerator.cs | |
parent | add744cb78cc588be94e29b61722e41627d2f9a4 (diff) |
WinGui:
- Implement DRC 0, default 0
- Tidy up audio query generation a bit.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2127 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain/QueryGenerator.cs')
-rw-r--r-- | win/C#/frmMain/QueryGenerator.cs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/win/C#/frmMain/QueryGenerator.cs b/win/C#/frmMain/QueryGenerator.cs index 8d77dfcb8..738bb2503 100644 --- a/win/C#/frmMain/QueryGenerator.cs +++ b/win/C#/frmMain/QueryGenerator.cs @@ -295,7 +295,8 @@ namespace Handbrake else
audioItems += "," + item;
}
- query += " -E " + audioItems;
+ if (audioItems.Trim() != String.Empty)
+ query += " -E " + audioItems;
firstLoop = true; audioItems = ""; // Reset for another pass.
// Audio Mixdown (-6)
@@ -308,7 +309,8 @@ namespace Handbrake else
audioItems += "," + item;
}
- query += " -6 " + audioItems;
+ if (audioItems.Trim() != String.Empty)
+ query += " -6 " + audioItems;
firstLoop = true; audioItems = ""; // Reset for another pass.
// Sample Rate (-R)
@@ -321,7 +323,8 @@ namespace Handbrake else
audioItems += "," + item;
}
- query += " -R " + audioItems;
+ if (audioItems.Trim() != String.Empty)
+ query += " -R " + audioItems;
firstLoop = true; audioItems = ""; // Reset for another pass.
// Audio Bitrate (-B)
@@ -334,7 +337,8 @@ namespace Handbrake else
audioItems += "," + item;
}
- query += " -B " + audioItems;
+ if (audioItems.Trim() != String.Empty)
+ query += " -B " + audioItems;
firstLoop = true; audioItems = ""; // Reset for another pass.
// DRC (-D)
@@ -347,7 +351,8 @@ namespace Handbrake else
audioItems += "," + item;
}
- query += " -D " + audioItems;
+ if (audioItems.Trim() != String.Empty)
+ query += " -D " + audioItems;
// Subtitles
string subtitles = mainWindow.drp_subtitle.Text;
|