First import.

This commit is contained in:
Damiano Galassi committed 2013-11-01 10:20:09 +01:00
1 parent 4e61250dc6
commit 796e9691ce
114 files changed
+37004 -44

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
//
// MP42SubtitleTrack.m
// Subler
//
// Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved.
//
#import "MP42ClosedCaptionTrack.h"
#import "MP42MediaFormat.h"
#import "SBLanguages.h"
@implementation MP42ClosedCaptionTrack
- (instancetype)initWithSourceURL:(NSURL *)URL trackID:(NSInteger)trackID fileHandle:(MP42FileHandle)fileHandle
{
if (self = [super initWithSourceURL:URL trackID:trackID fileHandle:fileHandle]) {
_mediaType = MP42MediaTypeClosedCaption;
}
return self;
}
- (instancetype)init
{
if ((self = [super init])) {
_name = [self defaultName];
_format = MP42ClosedCaptionFormatCEA608;
_mediaType = MP42MediaTypeClosedCaption;
}
return self;
}
- (BOOL)writeToFile:(MP42FileHandle)fileHandle error:(NSError **)outError
{
if (_isEdited && !_muxed)
_muxed = YES;
[super writeToFile:fileHandle error:outError];
return _Id;
}
- (NSString *)defaultName {
return MP42MediaTypeClosedCaption;
}
- (void)dealloc
{
[super dealloc];
}
@end