Adda property to check if a track can be exported.

This commit is contained in:
Damiano Galassi committed 2018-10-22 11:25:35 +02:00
1 parent 3f0c6c85b6
commit 2321192a5b
3 files changed
+11

No files matched your search

+5
View File
@@ -131,6 +131,11 @@
self.updatedProperty[@"forcedSubtitles"] = @YES;
}
- (BOOL)canExport
{
return YES;
}
typedef struct style_record {
uint16_t startChar;
uint16_t endChar;
+1
View File
@@ -48,6 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, readonly) NSString *timeString;
@property (nonatomic, readonly) NSString *formatSummary;
@property (nonatomic, readonly) BOOL canExport;
- (BOOL)exportToURL:(NSURL *)url error:(NSError * __autoreleasing *)error;
@end
+5
View File
@@ -322,6 +322,11 @@
return localizedDisplayName(_mediaType, self.targetFormat);
}
- (BOOL)canExport
{
return NO;
}
- (BOOL)exportToURL:(NSURL *)url error:(NSError * __autoreleasing *)error
{
return YES;