From 7f1f338df87f6075e7edf0cd598523acaf0f82a1 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 11 Jul 2012 17:41:27 +0000 Subject: WinGui: Fix an issue where selecting the dvd drive in the source menu would not allow the source to be encoded after scanning. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4824 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Utilities/QueryGeneratorUtility.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'win/CS/HandBrake.ApplicationServices/Utilities') diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs index fd8e15152..7e1c0bf41 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs @@ -144,14 +144,10 @@ namespace HandBrake.ApplicationServices.Utilities { string query = string.Empty; - // If we have a folder, strip it's trailing slash for the CLI. - // It behaves a bit funny with trailing \ in some cases. - if (task.Source.EndsWith("\\")) - { - task.Source = task.Source.TrimEnd('\\'); - } + query += task.Source.EndsWith("\\") + ? string.Format(" -i \"{0}\\\\\"", task.Source.TrimEnd('\\')) + : string.Format(" -i \"{0}\"", task.Source); - query += string.Format(" -i \"{0}\"", task.Source); query += string.Format(" -t {0}", task.Title); query += string.Format(" --angle {0}", task.Angle); -- cgit v1.2.3