Fixes some Xcode 9 warning.
This commit is contained in:
1 parent
a909677e67
commit
7861e4fe2c
8 files changed
+28
-13
No files matched your search
+1
-1
@@ -13,7 +13,7 @@
|
||||
#include <CoreAudio/CoreAudio.h>
|
||||
#include <avcodec.h>
|
||||
|
||||
void FFInitFFmpeg();
|
||||
void FFInitFFmpeg(void);
|
||||
|
||||
enum AVCodecID ASBDToCodecID(AudioStreamBasicDescription asbd);
|
||||
enum AVCodecID FourCCToCodecID(OSType formatID);
|
||||
|
||||
+1
-1
@@ -621,7 +621,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL)writeToUrl:(NSURL *)url options:(nullable NSDictionary<NSString *, id> *)options error:(NSError **)outError {
|
||||
- (BOOL)writeToUrl:(NSURL *)url options:(nullable NSDictionary<NSString *, id> *)options error:(NSError * __autoreleasing *)outError {
|
||||
BOOL success = YES;
|
||||
|
||||
if (!url) {
|
||||
|
||||
@@ -124,12 +124,12 @@ static NSArray<NSString *> *_supportedFileFormats;
|
||||
}
|
||||
|
||||
[_metadata release];
|
||||
[_tracksArray release], _tracksArray = nil;
|
||||
[_inputTracks release], _inputTracks = nil;
|
||||
[_outputsTracks release], _outputsTracks = nil;
|
||||
[_tracksArray release]; _tracksArray = nil;
|
||||
[_inputTracks release]; _inputTracks = nil;
|
||||
[_outputsTracks release]; _outputsTracks = nil;
|
||||
|
||||
[_fileURL release], _fileURL = nil;
|
||||
[_demuxerThread release], _demuxerThread = nil;
|
||||
[_fileURL release]; _fileURL = nil;
|
||||
[_demuxerThread release]; _demuxerThread = nil;
|
||||
|
||||
if (_doneSem) {
|
||||
dispatch_release(_doneSem);
|
||||
|
||||
@@ -63,8 +63,8 @@
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[queue release], queue = nil;
|
||||
[ss release], ss = nil;
|
||||
[queue release]; queue = nil;
|
||||
[ss release]; ss = nil;
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@@ -335,7 +335,7 @@ extern NSString *STLoadFileWithUnknownEncoding(NSURL *url)
|
||||
if (!res) NSLog(@"Both of latin1/2 failed.\n");
|
||||
} else {
|
||||
res = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
|
||||
if (!res) NSLog(@"ASCII failed."), NSLog(@"Failed to load file as guessed encoding %@.",enc_str);
|
||||
if (!res) { NSLog(@"ASCII failed."); NSLog(@"Failed to load file as guessed encoding %@.",enc_str); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,10 @@
|
||||
if (joined) [self addMetadataItemWithString:joined identifier:MP42MetadataKeyProducer];
|
||||
|
||||
joined = [self nodes:node forXPath:@"./directors/director_name" joinedBy:@","];
|
||||
if (joined) [self addMetadataItemWithString:joined identifier:MP42MetadataKeyDirector], [self addMetadataItemWithString:joined identifier:MP42MetadataKeyArtist];
|
||||
if (joined) {
|
||||
[self addMetadataItemWithString:joined identifier:MP42MetadataKeyDirector];
|
||||
[self addMetadataItemWithString:joined identifier:MP42MetadataKeyArtist];
|
||||
}
|
||||
|
||||
joined = [self nodes:node forXPath:@"./casts/cast" joinedBy:@","];
|
||||
if (joined) [self addMetadataItemWithString:joined identifier:MP42MetadataKeyCast];
|
||||
|
||||
Reference in new issue
Block a user