summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/Encode.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-05-29 17:29:57 +0000
committersr55 <[email protected]>2011-05-29 17:29:57 +0000
commite6f26f89f2d084a2adb40e4c41e46de5c7e5d2c5 (patch)
tree4a35b75dc8874a06d2f27806b5119364df58d3e1 /win/CS/HandBrake.ApplicationServices/Services/Encode.cs
parent6521211f3657d5f4dc424ec871d2e0458bb6b287 (diff)
WinGui: Some additional work on the libhb encode service to move it closer to a working service.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4010 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/Encode.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Encode.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs
index 12f1e2760..26708434f 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs
@@ -103,19 +103,7 @@ namespace HandBrake.ApplicationServices.Services
}
// Make sure the path exists, attempt to create it if it doesn't
- string path = Directory.GetParent(queueTask.Destination).ToString();
- if (!Directory.Exists(path))
- {
- try
- {
- Directory.CreateDirectory(path);
- }
- catch (Exception)
- {
- throw new Exception(
- "Unable to create directory for the encoded output. Please verify the drive and path is correct.");
- }
- }
+ this.VerifyEncodeDestinationPath(queueTask);
string handbrakeCLIPath = Path.Combine(Application.StartupPath, "HandBrakeCLI.exe");
ProcessStartInfo cliStart = new ProcessStartInfo(handbrakeCLIPath, queueTask.Query)