diff options
author | sr55 <[email protected]> | 2016-12-22 21:13:55 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-12-22 21:13:55 +0000 |
commit | 9e80492bd66c7b80fb89973d4f4636cc729e99b1 (patch) | |
tree | 672424396602816b0c781ff90fbbf4e504389ef0 /win/CS/HandBrakeWPF/Services/Encode | |
parent | 9fde49547549edc83e0281bd78eb0f35261cb138 (diff) |
WinGui: Change the status bar to show when it's doing a subtitle scan.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Encode')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeProgressEventArgs.cs | 11 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeProgressEventArgs.cs b/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeProgressEventArgs.cs index 5d3d12791..940be6568 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeProgressEventArgs.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeProgressEventArgs.cs @@ -59,5 +59,16 @@ namespace HandBrakeWPF.Services.Encode.EventArgs /// </summary> [DataMember] public TimeSpan ElapsedTime { get; set; } + + /// <summary> + /// Gets or sets PassId. + /// </summary> + /// <remarks> + /// -1: Subtitle scan + /// 0: Encode + /// 1: Encode first pass + /// 2: Encode second pass + /// </remarks> + public int PassId { get; set; } } } diff --git a/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs b/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs index ec0680fb1..58505659b 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs @@ -169,6 +169,7 @@ namespace HandBrakeWPF.Services.Encode Task = e.Pass, TaskCount = e.PassCount, ElapsedTime = DateTime.Now - this.startTime, + PassId = e.PassId }; this.InvokeEncodeStatusChanged(args); |