summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-03-20 19:44:28 +0000
committersr55 <[email protected]>2012-03-20 19:44:28 +0000
commitf18e8e29149e801366393ddd92beebde6e3bbb7a (patch)
tree30259fc26e210d956973115eb3e6d15b61faf278 /win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
parente132b801ad17e036a537784c19c43251e7a790ae (diff)
WinGui: Fix broken duration display.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4520 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Parsing/Title.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Parsing/Title.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
index 51c2f11c3..4bb47f201 100644
--- a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
+++ b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
@@ -245,10 +245,10 @@ namespace HandBrake.ApplicationServices.Parsing
public TimeSpan CalculateDuration(int startPoint, int endPoint)
{
TimeSpan duration = TimeSpan.FromSeconds(0.0);
- if (startPoint != 0 && endPoint != 0 && endPoint <= this.Chapters.Count)
+ if (endPoint <= this.Chapters.Count)
{
for (int i = startPoint; i <= endPoint; i++)
- duration += this.Chapters[i - 1].Duration;
+ duration += this.Chapters[i].Duration;
}
return duration;