summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-09-26 14:38:20 +0000
committersr55 <[email protected]>2010-09-26 14:38:20 +0000
commit1bca5338bb277f7351c67c890fc8fbc6b4fdbc71 (patch)
treeeac44b011155dcb959cf4d26bd478ac84e309396 /win/C#/HandBrake.ApplicationServices
parent1069e69aed61a77be89589c05bc5e849e38adeba (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/C#/HandBrake.ApplicationServices')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Services/Encode.cs6
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);