summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-05-14 23:24:25 +0000
committersr55 <[email protected]>2012-05-14 23:24:25 +0000
commitc3e391f2fe94084c2a5ffb221cd1ced0b4c861bf (patch)
tree6b4f3fe904a6717371ed15f95f4a958b2669b1c9 /win/CS/HandBrake.ApplicationServices/Services
parent0a46de5cf236dd05ac9cd18451f2fd23fc6419a7 (diff)
WinGui:
- Fix some stupid code in the CliCheckHelper class which could easily cause it to not set version information. - Fix an issue in the scan service where it could try to write to a log directory which doesn't exist yet leading to no log file being displayed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4680 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/ScanService.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
index cc94a3f7d..cd9eb834a 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
@@ -21,7 +21,7 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// Scan a Source
/// </summary>
- public class ScanService : IScan
+ public class ScanService : IScan
{
#region Private Variables
@@ -210,6 +210,11 @@ namespace HandBrake.ApplicationServices.Services
logDir,
string.Format("last_scan_log{0}.txt", GeneralUtilities.GetInstanceCount));
+ if (!Directory.Exists(logDir))
+ {
+ Directory.CreateDirectory(logDir);
+ }
+
// Make we don't pick up a stale last_encode_log.txt (and that we have rights to the file)
if (File.Exists(dvdInfoPath))
{