From 376eae49e2c14f4acdbd644908e162ac6a2c5c3e Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 4 Mar 2012 16:27:56 +0000 Subject: WinGui: (WPF) Add basic Preview window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4495 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs') diff --git a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs index 84c6252a2..e2eacce72 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs @@ -366,7 +366,7 @@ namespace HandBrake.ApplicationServices.Services.Base // Make sure the path exists, attempt to create it if it doesn't try { - string path = Directory.GetParent(task.Destination).ToString(); + string path = Directory.GetParent(task.Destination ?? task.Task.Destination).ToString(); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); -- cgit v1.2.3