summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-12-22 17:05:20 +0000
committersr55 <[email protected]>2013-12-22 17:05:20 +0000
commit9eee8673822bea969bdf205e0c2d3d6d9a0c18a6 (patch)
treed64fd2fce642cada85cc0038c7ca6255cf713f9f /win/CS/HandBrake.Interop
parent164190053ac8ef37f98e944ae7f9368e8ae5279a (diff)
WinGui: Add support for passing through chapter names.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5939 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop')
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs3
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Chapter.cs5
2 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs
index af3a56ee4..494a8d717 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs
@@ -1892,9 +1892,10 @@ namespace HandBrake.Interop
List<hb_chapter_s> chapterList = title.list_chapter.ToList<hb_chapter_s>();
foreach (hb_chapter_s chapter in chapterList)
- {
+ {
var newChapter = new Chapter
{
+ Name = chapter.title,
ChapterNumber = chapter.index,
Duration = Converters.PtsToTimeSpan(chapter.duration),
DurationPts = chapter.duration
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Chapter.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Chapter.cs
index 411a8d851..25d5b811b 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Chapter.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Chapter.cs
@@ -17,6 +17,11 @@ namespace HandBrake.Interop.SourceData
/// </summary>
public class Chapter
{
+ /// <summary>
+ /// Gets or sets the name.
+ /// </summary>
+ public string Name { get; set; }
+
/// <summary>
/// Gets or sets the number of this Chapter, in regards to its parent Title
/// </summary>