diff options
author | sr55 <[email protected]> | 2015-01-27 21:23:57 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-01-27 21:23:57 +0000 |
commit | 12def0ed27098092a7a998eaa29886770071a2b4 (patch) | |
tree | 3f4f47992d4f5eca884c3cb90e7ee779d4c089ba /win/CS/HandBrake.ApplicationServices/Services/Encode/EncodeBase.cs | |
parent | 11eabcf6e929b316ccc3509d73ab176beca2522f (diff) |
WinGui:
- Fixes to Disk logging.
- Improvements to Queue Item tooltip.
- Queue will no longer pause if an encode fails. It will move onto the next item and try that.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6822 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/Encode/EncodeBase.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/Encode/EncodeBase.cs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Encode/EncodeBase.cs b/win/CS/HandBrake.ApplicationServices/Services/Encode/EncodeBase.cs index 3c78835ae..8737ba64f 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Encode/EncodeBase.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Encode/EncodeBase.cs @@ -10,6 +10,8 @@ namespace HandBrake.ApplicationServices.Services.Encode
{
using System;
+ using System.Collections.Generic;
+ using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
@@ -344,7 +346,7 @@ namespace HandBrake.ApplicationServices.Services.Encode this.fileWriter.WriteLine(this.header);
if (!isLibhb)
{
- this.fileWriter.WriteLine(string.Format("CLI Query: {0}", query));
+ this.fileWriter.WriteLine("CLI Query: {0}", query);
}
this.fileWriter.WriteLine();
}
@@ -353,8 +355,12 @@ namespace HandBrake.ApplicationServices.Services.Encode {
if (this.fileWriter != null)
{
- this.fileWriter.Close();
- this.fileWriter.Dispose();
+ lock (FileWriterLock)
+ {
+ this.fileWriter.Flush();
+ this.fileWriter.Close();
+ this.fileWriter.Dispose();
+ }
}
throw;
@@ -417,6 +423,7 @@ namespace HandBrake.ApplicationServices.Services.Encode {
if (this.fileWriter != null)
{
+ this.fileWriter.Flush();
this.fileWriter.Close();
this.fileWriter.Dispose();
}
@@ -424,9 +431,9 @@ namespace HandBrake.ApplicationServices.Services.Encode this.fileWriter = null;
}
}
- catch (Exception)
+ catch (Exception exc)
{
- // This exception doesn't warrent user interaction, but it should be logged (TODO)
+ Debug.WriteLine(exc); // This exception doesn't warrent user interaction, but it should be logged
}
}
|