mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 12:36:44 +00:00
ChapterData.Duration as computed property
This commit is contained in:
parent
38789162eb
commit
ba78512cb9
1 changed files with 1 additions and 3 deletions
|
@ -6,15 +6,13 @@ public class ChapterData
|
||||||
public TimeSpan Start { get; private set; }
|
public TimeSpan Start { get; private set; }
|
||||||
public TimeSpan End { get; private set; }
|
public TimeSpan End { get; private set; }
|
||||||
|
|
||||||
public TimeSpan Duration { get; private set; }
|
public TimeSpan Duration => End - Start;
|
||||||
|
|
||||||
public ChapterData(string title, TimeSpan start, TimeSpan end)
|
public ChapterData(string title, TimeSpan start, TimeSpan end)
|
||||||
{
|
{
|
||||||
Title = title;
|
Title = title;
|
||||||
Start = start;
|
Start = start;
|
||||||
End = end;
|
End = end;
|
||||||
|
|
||||||
Duration = end - start;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue