diff options
Diffstat (limited to 'win/CS/Functions')
-rw-r--r-- | win/CS/Functions/QueryGenerator.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs index 435624249..25003582b 100644 --- a/win/CS/Functions/QueryGenerator.cs +++ b/win/CS/Functions/QueryGenerator.cs @@ -107,16 +107,21 @@ namespace Handbrake.Functions private static string SourceQuery(frmMain mainWindow, int mode, int duration, string preview)
{
string query = string.Empty;
+ string sourcePath = string.Empty;
+
+ sourcePath = mainWindow.selectedTitle != null && File.Exists(mainWindow.selectedTitle.SourceName)
+ ? mainWindow.selectedTitle.SourceName.Trim()
+ : mainWindow.sourcePath;
if (!string.IsNullOrEmpty(mainWindow.sourcePath) && mainWindow.sourcePath.Trim() != "Select \"Source\" to continue")
{
if (mainWindow.sourcePath.EndsWith("\\"))
{
- query = " -i " + mainWindow.sourcePath;
+ query = " -i " + sourcePath;
}
else
{
- query = " -i " + '"' + mainWindow.sourcePath + '"';
+ query = " -i " + '"' + sourcePath + '"';
}
}
|