Fix importer error handling.

This commit is contained in:
Damiano Galassi committed 2017-11-27 09:22:08 +01:00
1 parent 07f4c8faa4
commit 7c42d93414
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface MP42BitmapSubConverter : NSObject <MP42ConverterProtocol> @interface MP42BitmapSubConverter : NSObject <MP42ConverterProtocol>
- (instancetype)initWithTrack:(MP42SubtitleTrack *)track error:(NSError * __autoreleasing *)outError; - (nullable instancetype)initWithTrack:(MP42SubtitleTrack *)track error:(NSError * __autoreleasing *)outError;
- (void)addSample:(MP42SampleBuffer *)sample; - (void)addSample:(MP42SampleBuffer *)sample;
- (nullable MP42SampleBuffer *)copyEncodedSample; - (nullable MP42SampleBuffer *)copyEncodedSample;
+1 -1
View File
@@ -76,7 +76,7 @@ typedef void (^MP42FileProgressHandler)(double progress);
* *
* @return An instance of MP42File * @return An instance of MP42File
*/ */
- (instancetype)initWithURL:(NSURL *)URL error:(NSError * _Nullable *)error; - (nullable instancetype)initWithURL:(NSURL *)URL error:(NSError * _Nullable *)error;
/** /**
* Provides the array of MP42Tracks contained by the mp4 file * Provides the array of MP42Tracks contained by the mp4 file
+1 -1
View File
@@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
*/ */
@interface MP42TextSubConverter : NSObject <MP42ConverterProtocol> @interface MP42TextSubConverter : NSObject <MP42ConverterProtocol>
- (instancetype)initWithTrack:(MP42SubtitleTrack *)track error:(NSError * __autoreleasing *)outError; - (nullable instancetype)initWithTrack:(MP42SubtitleTrack *)track error:(NSError * __autoreleasing *)outError;
- (void)addSample:(MP42SampleBuffer *)sample; - (void)addSample:(MP42SampleBuffer *)sample;
- (nullable MP42SampleBuffer *)copyEncodedSample; - (nullable MP42SampleBuffer *)copyEncodedSample;
+1 -1
View File
@@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface MP42XMLReader : NSObject @interface MP42XMLReader : NSObject
- (instancetype)initWithURL:(NSURL *)url error:(NSError * __autoreleasing *)error; - (nullable instancetype)initWithURL:(NSURL *)url error:(NSError * __autoreleasing *)error;
@property (nonatomic, readonly) MP42Metadata *mMetadata; @property (nonatomic, readonly) MP42Metadata *mMetadata;