Fix MP4File serialisation.

This commit is contained in:
Damiano Galassi committed 2016-11-09 19:22:54 +01:00
1 parent 90136ada49
commit 983e2f11e1
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -1094,7 +1094,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
}
- (id)initWithCoder:(NSCoder *)decoder {
self = [super init];
self = [self init];
NSData *bookmarkData = [decoder decodeObjectOfClass:[NSData class] forKey:@"bookmark"];
if (bookmarkData) {
+6
View File
@@ -1488,6 +1488,12 @@ static const genreType_t genreType_strings[] = {
_artworkEdited = [decoder decodeBoolForKey:@"MP42ArtworkEdited"];
_edited = [decoder decodeBoolForKey:@"MP42Edited"];
for (MP42MetadataItem *item in _itemsArray) {
if (![item.identifier isEqualToString:MP42MetadataKeyCoverArt]) {
_itemsMap[item.identifier] = item;
}
}
return self;
}