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 <CoreAudio/CoreAudio.h>
|
||||||
#include <avcodec.h>
|
#include <avcodec.h>
|
||||||
|
|
||||||
void FFInitFFmpeg();
|
void FFInitFFmpeg(void);
|
||||||
|
|
||||||
enum AVCodecID ASBDToCodecID(AudioStreamBasicDescription asbd);
|
enum AVCodecID ASBDToCodecID(AudioStreamBasicDescription asbd);
|
||||||
enum AVCodecID FourCCToCodecID(OSType formatID);
|
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;
|
BOOL success = YES;
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
|
|||||||
@@ -124,12 +124,12 @@ static NSArray<NSString *> *_supportedFileFormats;
|
|||||||
}
|
}
|
||||||
|
|
||||||
[_metadata release];
|
[_metadata release];
|
||||||
[_tracksArray release], _tracksArray = nil;
|
[_tracksArray release]; _tracksArray = nil;
|
||||||
[_inputTracks release], _inputTracks = nil;
|
[_inputTracks release]; _inputTracks = nil;
|
||||||
[_outputsTracks release], _outputsTracks = nil;
|
[_outputsTracks release]; _outputsTracks = nil;
|
||||||
|
|
||||||
[_fileURL release], _fileURL = nil;
|
[_fileURL release]; _fileURL = nil;
|
||||||
[_demuxerThread release], _demuxerThread = nil;
|
[_demuxerThread release]; _demuxerThread = nil;
|
||||||
|
|
||||||
if (_doneSem) {
|
if (_doneSem) {
|
||||||
dispatch_release(_doneSem);
|
dispatch_release(_doneSem);
|
||||||
|
|||||||
@@ -63,8 +63,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc {
|
- (void)dealloc {
|
||||||
[queue release], queue = nil;
|
[queue release]; queue = nil;
|
||||||
[ss release], ss = nil;
|
[ss release]; ss = nil;
|
||||||
|
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ extern NSString *STLoadFileWithUnknownEncoding(NSURL *url)
|
|||||||
if (!res) NSLog(@"Both of latin1/2 failed.\n");
|
if (!res) NSLog(@"Both of latin1/2 failed.\n");
|
||||||
} else {
|
} else {
|
||||||
res = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
|
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];
|
if (joined) [self addMetadataItemWithString:joined identifier:MP42MetadataKeyProducer];
|
||||||
|
|
||||||
joined = [self nodes:node forXPath:@"./directors/director_name" joinedBy:@","];
|
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:@","];
|
joined = [self nodes:node forXPath:@"./casts/cast" joinedBy:@","];
|
||||||
if (joined) [self addMetadataItemWithString:joined identifier:MP42MetadataKeyCast];
|
if (joined) [self addMetadataItemWithString:joined identifier:MP42MetadataKeyCast];
|
||||||
|
|||||||
@@ -922,7 +922,7 @@
|
|||||||
A9B9C1E4182391DF00416A4E /* Project object */ = {
|
A9B9C1E4182391DF00416A4E /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0810;
|
LastUpgradeCheck = 0900;
|
||||||
ORGANIZATIONNAME = "Damiano Galassi";
|
ORGANIZATIONNAME = "Damiano Galassi";
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
A9B9C203182391DF00416A4E = {
|
A9B9C203182391DF00416A4E = {
|
||||||
@@ -1267,15 +1267,21 @@
|
|||||||
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
|
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
|
||||||
CLANG_CXX_LIBRARY = "compiler-default";
|
CLANG_CXX_LIBRARY = "compiler-default";
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
|
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
|
CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
@@ -1326,15 +1332,21 @@
|
|||||||
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
|
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
|
||||||
CLANG_CXX_LIBRARY = "compiler-default";
|
CLANG_CXX_LIBRARY = "compiler-default";
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
|
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
|
CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
|||||||
@@ -450,7 +450,7 @@
|
|||||||
0867D690FE84028FC02AAC07 /* Project object */ = {
|
0867D690FE84028FC02AAC07 /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0830;
|
LastUpgradeCheck = 0900;
|
||||||
};
|
};
|
||||||
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "UniversalDetector" */;
|
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "UniversalDetector" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
|
|||||||
Reference in new issue
Block a user