summaryrefslogtreecommitdiffstats
path: root/win/C#/EncodeQueue/Encode.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-07-15 11:03:54 +0000
committersr55 <[email protected]>2009-07-15 11:03:54 +0000
commit742df70f4ae59aba07e2b094c2f9f4a9efc01a7c (patch)
tree64df63f584693271f82b4370086ff206efe7bd5d /win/C#/EncodeQueue/Encode.cs
parentf5108ef3ae828197e68cb2f03f37ef90679f02c5 (diff)
WinGui:
- The options panel (frmOptions) is now completely wrapped in TableLayoutPanels. - The rest of the GUI has been changed to Tahoma, 8pt font. - QueueHandler and it's related classes have been refactored and documented. - new option has been added that prompts the user before encoding when the query under the "Query Editor" tab does not match the GUI settings. It can be disabled in the options window. - A bug where "last_encode_log.txt" failed to be read has been fixed that was caused by exiting the CLI window shortly after starting the encode. Thansk to darkassassin git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2693 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/EncodeQueue/Encode.cs')
-rw-r--r--win/C#/EncodeQueue/Encode.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/win/C#/EncodeQueue/Encode.cs b/win/C#/EncodeQueue/Encode.cs
index 248624064..83ebc986b 100644
--- a/win/C#/EncodeQueue/Encode.cs
+++ b/win/C#/EncodeQueue/Encode.cs
@@ -38,7 +38,6 @@ namespace Handbrake.EncodeQueue
{
cliStart.RedirectStandardOutput = true;
cliStart.UseShellExecute = false;
-
}
if (Properties.Settings.Default.cli_minimized)
cliStart.WindowStyle = ProcessWindowStyle.Minimized;
@@ -127,7 +126,7 @@ namespace Handbrake.EncodeQueue
}
}
- /// <summary>
+ /// <summar>
/// Append the CLI query to the start of the log file.
/// </summary>
/// <param name="query"></param>
@@ -136,7 +135,7 @@ namespace Handbrake.EncodeQueue
string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
string logPath = Path.Combine(logDir, "last_encode_log.txt");
- StreamReader reader = new StreamReader(File.Open(logPath, FileMode.Open, FileAccess.Read));
+ StreamReader reader = new StreamReader(File.Open(logPath, FileMode.Open, FileAccess.Read, FileShare.Read));
String log = reader.ReadToEnd();
reader.Close();