diff options
author | sr55 <[email protected]> | 2011-09-12 20:09:55 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-09-12 20:09:55 +0000 |
commit | ace57e1b754f84cad9603e7ed14aa9c6bb705461 (patch) | |
tree | 3b5276d7b4372a4a36a7d57da829da4db0eb34f9 /win/CS/HandBrake.ApplicationServices/Services/LibScan.cs | |
parent | 7129aebff7254512f7319b059c507db6f9c77ca2 (diff) |
WinGui: Numerous fixes to Libhb based scanning and encoding. Aside from several non-critical bugs, the code is now "usable" but should be considered experimental.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4219 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/LibScan.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/LibScan.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs index 3e2e166ce..1dab6aa6c 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs @@ -14,8 +14,8 @@ namespace HandBrake.ApplicationServices.Services using HandBrake.ApplicationServices.Model.Encoding;
using HandBrake.ApplicationServices.Parsing;
using HandBrake.ApplicationServices.Services.Interfaces;
+ using HandBrake.ApplicationServices.Utilities;
using HandBrake.Interop;
- using HandBrake.Interop.Model;
using AudioTrack = HandBrake.ApplicationServices.Parsing.Audio;
using ScanProgressEventArgs = HandBrake.Interop.ScanProgressEventArgs;
@@ -85,6 +85,11 @@ namespace HandBrake.ApplicationServices.Services /// </summary>
public event ScanProgessStatus ScanStatusChanged;
+ /// <summary>
+ /// The Log File Header
+ /// </summary>
+ StringBuilder header = GeneralUtilities.CreateCliLogHeader();
+
#endregion
#region Properties
@@ -106,7 +111,7 @@ namespace HandBrake.ApplicationServices.Services {
get
{
- return logging.ToString();
+ return string.IsNullOrEmpty(this.logging.ToString()) ? this.header + "No log data available..." : this.header + this.logging.ToString();
}
}
@@ -161,6 +166,8 @@ namespace HandBrake.ApplicationServices.Services {
try
{
+ this.logging.Clear();
+
IsScanning = true;
if (this.ScanStared != null)
this.ScanStared(this, new EventArgs());
|