Fixes some Xcode 9 warning.

This commit is contained in:
Damiano Galassi committed 2017-06-10 21:07:58 +02:00
1 parent a909677e67
commit 7861e4fe2c
8 files changed
+28 -13

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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) {
+5 -5
View File
@@ -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);
+2 -2
View File
@@ -63,8 +63,8 @@
}
- (void)dealloc {
[queue release], queue = nil;
[ss release], ss = nil;
[queue release]; queue = nil;
[ss release]; ss = nil;
[super dealloc];
}
+1 -1
View File
@@ -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); }
}
}
+4 -1
View File
@@ -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];