summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs
diff options
context:
space:
mode:
authorrandomengy <[email protected]>2013-03-31 20:55:00 +0000
committerrandomengy <[email protected]>2013-03-31 20:55:00 +0000
commitb37e7f1b4078fa478424a80fbaf1f56639e50eaa (patch)
treee0f9e61f67ebc56bd0258f000243c40ec12eb8fe /win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs
parent09e3a53c02d90e793885983a384a9283b8243590 (diff)
Exposing DurationPts on titles and chapters from scans, along with some conversion functions.
Adding values to ScanProgressEventArgs to expose more fine-tuned progress. Updating structs to catch up to most recent HB SVN. Added a new VideoRangeType: All. This allows you to specify an entire title to convert without counting chapters. We now create the filter list sorted and pass in the RENDERSUB filter with correct cropping values. This fixes burned-in subtitles getting cut off by cropping. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5369 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs')
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs
index 568e41a31..eb9353aa7 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs
@@ -217,6 +217,8 @@ namespace HandBrake.Interop
{
switch (job.RangeType)
{
+ case VideoRangeType.All:
+ return title.Duration.TotalSeconds;
case VideoRangeType.Chapters:
TimeSpan duration = TimeSpan.Zero;
for (int i = job.ChapterStart; i <= job.ChapterEnd; i++)