Adopt objc direct attributes where possible.

This commit is contained in:
Damiano Galassi committed 2020-07-01 19:48:11 +02:00
1 parent b9eb2a8993
commit f63e23f878
66 files changed
+223 -131

No files matched your search

+2 -2
View File
@@ -24,6 +24,7 @@
#import <VideoToolbox/VideoToolbox.h>
#import <MediaToolbox/MediaToolbox.h>
MP42_OBJC_DIRECT_MEMBERS
@interface AVFDemuxHelper : NSObject {
@public
MP42TrackId sourceID;
@@ -42,6 +43,7 @@
@implementation AVFDemuxHelper
@end
MP42_OBJC_DIRECT_MEMBERS
@implementation MP42AVFImporter {
AVAsset *_localAsset;
NSMutableArray<AVFDemuxHelper *> *_helpers;
@@ -511,8 +513,6 @@
MP42MetadataKeyEncodingTool, AVMetadataCommonKeySoftware,
nil];
self.metadata = [[MP42Metadata alloc] init];
for (NSString *commonKey in commonItemsDict.allKeys) {
NSArray<AVMetadataItem *> *items = [AVMetadataItem metadataItemsFromArray:_localAsset.commonMetadata
withKey:commonKey