Fix the rename every chapter method.
This commit is contained in:
1 parent
7a88d67a0e
commit
2e72d6d8ba
2 files changed
+2
-3
No files matched your search
@@ -109,7 +109,7 @@
|
|||||||
- (IBAction)renameChapters:(id)sender {
|
- (IBAction)renameChapters:(id)sender {
|
||||||
[track.chapters enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
|
[track.chapters enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
|
||||||
NSString *title = [NSString stringWithFormat:@"Chapter %lu", (unsigned long) idx + 1];
|
NSString *title = [NSString stringWithFormat:@"Chapter %lu", (unsigned long) idx + 1];
|
||||||
[(MP42TextSample *)obj setTitle:title];
|
[track setTitle:title forChapter:(MP42TextSample *)obj];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[chapterTableView reloadData];
|
[chapterTableView reloadData];
|
||||||
|
|||||||
@@ -675,9 +675,8 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
|
|||||||
|
|
||||||
if (hdVideo)
|
if (hdVideo)
|
||||||
[self.mp4.metadata setTag:@(hdVideo) forKey:@"HD Video"];
|
[self.mp4.metadata setTag:@(hdVideo) forKey:@"HD Video"];
|
||||||
|
|
||||||
[self updateChangeCount:NSChangeDone];
|
|
||||||
}
|
}
|
||||||
|
[self updateChangeCount:NSChangeDone];
|
||||||
}
|
}
|
||||||
|
|
||||||
[metadataToBeImported release];
|
[metadataToBeImported release];
|
||||||
|
|||||||
Reference in new issue
Block a user