Update submodule.

This commit is contained in:
Damiano Galassi committed 2015-11-25 20:09:58 +01:00
1 parent 6e36c20cc8
commit d7d9d2af6c
2 files changed
+6 -4

No files matched your search

+5 -3
View File
@@ -100,8 +100,6 @@
- (SBChapterResult *)parseResult:(NSXMLNode *)child
{
NSMutableArray<MP42TextSample *> *chapters = [NSMutableArray array];
NSString *title = [self titleForNode:child];
NSUInteger confirmations = [self confirmationsForNode:child];
NSUInteger duration = [self durationForNode:child];
@@ -111,7 +109,9 @@
MP42Duration currentTime = 0;
if (times && names) {
if (title && times && names) {
NSMutableArray<MP42TextSample *> *chapters = [NSMutableArray array];
for (NSInteger i = 0; i < times.count && i < names.count; i++) {
@@ -137,6 +137,7 @@
}
}
if (chapters.count) {
SBChapterResult *result = [[SBChapterResult alloc] initWithTitle:title
duration:duration
confirmations:confirmations
@@ -144,6 +145,7 @@
return [result autorelease];
}
}
return nil;
}