summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob+HBJobConversion.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-09 12:34:42 +0200
committerDamiano Galassi <[email protected]>2015-10-09 12:34:42 +0200
commitf6920d0dbbc70e16cd016ab9d809532fa5db5521 (patch)
treed62071ed285145a946e20614bed73f44a9f8731b /macosx/HBJob+HBJobConversion.m
parentf9c5593978ccc7f214dff75f01f59ebda91d8102 (diff)
MacGui: add a duration column to the chapters table
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r--macosx/HBJob+HBJobConversion.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m
index 1b9f39fd0..08514d55d 100644
--- a/macosx/HBJob+HBJobConversion.m
+++ b/macosx/HBJob+HBJobConversion.m
@@ -9,6 +9,8 @@
#import "HBAudioDefaults.h"
#import "HBAudioTrack.h"
+#import "HBChapter.h"
+
#import "HBTitlePrivate.h"
@implementation HBJob (HBJobConversion)
@@ -84,12 +86,12 @@
// Also, note that if for some reason we don't apply chapter names, the
// chapters just come out 001, 002, etc. etc.
int i = 0;
- for (NSString *name in self.chapterTitles)
+ for (HBChapter *jobChapter in self.chapterTitles)
{
hb_chapter_t *chapter = (hb_chapter_t *) hb_list_item(job->list_chapter, i);
if (chapter != NULL)
{
- hb_chapter_set_title(chapter, name.UTF8String);
+ hb_chapter_set_title(chapter, jobChapter.title.UTF8String);
}
i++;
}