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