Modernized the projects and fixed a warning
This commit is contained in:
1 parent
4f1fc0daaf
commit
bba1753c48
7 files changed
+24
-18
No files matched your search
+1
-1
@@ -893,7 +893,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
|
||||
|
||||
[NSGraphicsContext restoreGraphicsState];
|
||||
|
||||
imageData = [bitmap representationUsingType:NSJPEGFileType properties:nil];
|
||||
imageData = [bitmap representationUsingType:NSJPEGFileType properties:@{}];
|
||||
[bitmap release];
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.galad.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
|
||||
+12
-10
@@ -1291,9 +1291,7 @@ static const genreType_t genreType_strings[] = {
|
||||
for (i = 0; i < [artworks count]; i++) {
|
||||
MP42Image *artwork;
|
||||
MP4TagArtwork newArtwork;
|
||||
NSArray *representations;
|
||||
NSData *bitmapData;
|
||||
|
||||
|
||||
artwork = [artworks objectAtIndex:i];
|
||||
if (artwork.data) {
|
||||
newArtwork.data = (void *)[artwork.data bytes];
|
||||
@@ -1301,13 +1299,17 @@ static const genreType_t genreType_strings[] = {
|
||||
newArtwork.type = artwork.type;
|
||||
}
|
||||
else {
|
||||
representations = [artwork.image representations];
|
||||
bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
|
||||
usingType:NSPNGFileType properties:nil];
|
||||
|
||||
newArtwork.data = (void *)[bitmapData bytes];
|
||||
newArtwork.size = [bitmapData length];
|
||||
newArtwork.type = MP4_ART_PNG;
|
||||
NSArray *representations = [artwork.image representations];
|
||||
if (representations.count) {
|
||||
NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
|
||||
usingType:NSPNGFileType properties:@{}];
|
||||
|
||||
if (bitmapData) {
|
||||
newArtwork.data = (void *)[bitmapData bytes];
|
||||
newArtwork.size = [bitmapData length];
|
||||
newArtwork.type = MP4_ART_PNG;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (tags->artworkCount > i)
|
||||
|
||||
@@ -45,7 +45,7 @@ MP42Duration TimeFromString(NSString *time_string, MP42Duration timeScale)
|
||||
|
||||
NSArray *supportedFileFormat()
|
||||
{
|
||||
return [NSArray arrayWithObjects:@"scc", @"smi", @"txt", @"m4v", @"mp4", @"m4a", @"m4a", @"mov", @"mts", @"m2ts",
|
||||
return [NSArray arrayWithObjects:@"scc", @"smi", @"txt", @"m4v", @"mp4", @"m4a", @"m4a", @"mov", @"ts", @"mts", @"m2ts",
|
||||
@"mkv", @"mka", @"mks", @"h264", @"264", @"idx", @"aac", @"ac3", @"srt", nil];
|
||||
}
|
||||
|
||||
|
||||
@@ -853,7 +853,7 @@
|
||||
A9B9C1E4182391DF00416A4E /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0630;
|
||||
LastUpgradeCheck = 0700;
|
||||
ORGANIZATIONNAME = "Damiano Galassi";
|
||||
TargetAttributes = {
|
||||
A9B9C203182391DF00416A4E = {
|
||||
@@ -1118,7 +1118,7 @@
|
||||
suppress,
|
||||
);
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = macosx10.8;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1145,7 +1145,7 @@
|
||||
suppress,
|
||||
);
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = macosx10.8;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -1261,6 +1261,7 @@
|
||||
"$(SRCROOT)/ffmpeg/lib",
|
||||
"$(SRCROOT)/Tesseract/lib",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
|
||||
PRODUCT_NAME = MP42Foundation;
|
||||
WRAPPER_EXTENSION = framework;
|
||||
};
|
||||
@@ -1283,6 +1284,7 @@
|
||||
"$(SRCROOT)/ffmpeg/lib",
|
||||
"$(SRCROOT)/Tesseract/lib",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
|
||||
PRODUCT_NAME = MP42Foundation;
|
||||
WRAPPER_EXTENSION = framework;
|
||||
};
|
||||
@@ -1304,6 +1306,7 @@
|
||||
"$(inherited)",
|
||||
);
|
||||
INFOPLIST_FILE = "MP42Tests/MP42FoundationTests-Info.plist";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
|
||||
PRODUCT_NAME = MP42FoundationFoundationTests;
|
||||
TEST_HOST = "$(BUNDLE_LOADER)";
|
||||
WRAPPER_EXTENSION = xctest;
|
||||
@@ -1322,6 +1325,7 @@
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "MP42/MP42Foundation-Prefix.pch";
|
||||
INFOPLIST_FILE = "MP42Tests/MP42FoundationTests-Info.plist";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
|
||||
PRODUCT_NAME = MP42FoundationFoundationTests;
|
||||
TEST_HOST = "$(BUNDLE_LOADER)";
|
||||
WRAPPER_EXTENSION = xctest;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.galad.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
|
||||
@@ -449,7 +449,7 @@
|
||||
0867D690FE84028FC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0630;
|
||||
LastUpgradeCheck = 0700;
|
||||
};
|
||||
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "UniversalDetector" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
|
||||
Reference in new issue
Block a user