diff options
author | sr55 <[email protected]> | 2010-09-26 14:38:20 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-09-26 14:38:20 +0000 |
commit | 1bca5338bb277f7351c67c890fc8fbc6b4fdbc71 (patch) | |
tree | eac44b011155dcb959cf4d26bd478ac84e309396 /win | |
parent | 1069e69aed61a77be89589c05bc5e849e38adeba (diff) |
WinGui:
- Small Tweak to the encode logging that might avoid exceptions breaking it.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3553 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/Services/Encode.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs index 855f517b2..95cc57676 100644 --- a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs +++ b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs @@ -456,11 +456,11 @@ namespace HandBrake.ApplicationServices.Services {
if (!String.IsNullOrEmpty(e.Data))
{
- lock (logBuffer)
- logBuffer.AppendLine(e.Data);
-
try
{
+ lock (logBuffer)
+ logBuffer.AppendLine(e.Data);
+
if (fileWriter != null && fileWriter.BaseStream.CanWrite)
{
fileWriter.WriteLine(e.Data);
|