Remove more protected ivars from MP42Track.

This commit is contained in:
Damiano Galassi committed 2016-09-13 13:21:27 +02:00
1 parent e323a76b30
commit f0b3466eba
8 files changed
+160 -165

No files matched your search

+6 -6
View File
@@ -17,7 +17,7 @@
self = [super initWithSourceURL:URL trackID:trackID fileHandle:fileHandle];
if (self) {
_mediaType = kMP42MediaType_ClosedCaption;
self.mediaType = kMP42MediaType_ClosedCaption;
}
return self;
@@ -26,8 +26,8 @@
- (instancetype)init
{
if ((self = [super init])) {
_format = kMP42ClosedCaptionCodecType_CEA608;
_mediaType = kMP42MediaType_ClosedCaption;
self.format = kMP42ClosedCaptionCodecType_CEA608;
self.mediaType = kMP42MediaType_ClosedCaption;
}
return self;
@@ -35,13 +35,13 @@
- (BOOL)writeToFile:(MP42FileHandle)fileHandle error:(NSError **)outError
{
if (_isEdited && !_muxed) {
_muxed = YES;
if (self.isEdited && !self.muxed) {
self.muxed = YES;
}
[super writeToFile:fileHandle error:outError];
return (_trackId > 0);
return (self.trackId > 0);
}
@end