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