summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-03-04 16:27:56 +0000
committersr55 <[email protected]>2012-03-04 16:27:56 +0000
commit376eae49e2c14f4acdbd644908e162ac6a2c5c3e (patch)
tree1093c1625c7a1c4399b9d114eb7bbecba9c4b65c /win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs
parent24bbf1b361a7b9cb78208b43cfec59173757ae24 (diff)
WinGui: (WPF) Add basic Preview window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4495 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs2
1 files changed, 1 insertions, 1 deletions
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);