Fixed a crash selected save after clicking the document close button, and small fixes

This commit is contained in:
galad87 committed 2015-08-29 11:42:54 +02:00
1 parent 29e8fe453f
commit 5d7bafae3d
18 files changed
+158 -83

No files matched your search

+6 -4
View File
@@ -167,8 +167,9 @@
MP42Image *artwork = [self loadArtwork:artworkURL];
if (artwork)
if (artwork) {
[metadata.artworks addObject:artwork];
}
}
return metadata;
@@ -183,11 +184,12 @@
MP42VideoTrack *videoTrack = (MP42VideoTrack *)track;
int hdVideo = isHdVideo((uint64_t)videoTrack.trackWidth, (uint64_t)videoTrack.trackHeight);
if (hdVideo)
[metadata setTag:@(hdVideo) forKey:@"HD Video"];
if (hdVideo) {
metadata[@"HD Video"] = @(hdVideo);
}
}
[[item.mp4File metadata] mergeMetadata:metadata];
[item.mp4File.metadata mergeMetadata:metadata];
}
- (NSString *)description {