Quellcode durchsuchen

MacOSX/Framework: Updated the test project to conform with the latest changes in VLC.framework. Patch by Enrique Osuna.

Pierre d'Herbemont vor 17 Jahren
Ursprung
Commit
6ac59b8caa
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 1 1
      Examples/test2/Controller.m
  2. 2 0
      Examples/test2/test.xcodeproj/project.pbxproj

+ 1 - 1
Examples/test2/Controller.m

@@ -120,7 +120,7 @@ static void *sleepForMe(void)
     for (i = 0; i < [droppedItems count]; i++)
     {
         NSString * filename = [droppedItems objectAtIndex:i];
-		VLCMedia *media = [VLCMedia mediaWithURL:filename];
+		VLCMedia * media = [VLCMedia mediaWithURL:[NSURL fileURLWithPath:filename]];
 		NSLog(@"%@ length = %@", media, [media lengthWaitUntilDate:[NSDate dateWithTimeIntervalSinceNow:60]]);
 		[playlist addMedia:media];
     }

+ 2 - 0
Examples/test2/test.xcodeproj/project.pbxproj

@@ -173,6 +173,7 @@
 		29B97313FDCFA39411CA2CEA /* Project object */ = {
 			isa = PBXProject;
 			buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "test" */;
+			compatibilityVersion = "Xcode 2.4";
 			hasScannedForEncodings = 1;
 			mainGroup = 29B97314FDCFA39411CA2CEA /* test */;
 			projectDirPath = "";
@@ -182,6 +183,7 @@
 					ProjectRef = EFD552230CC6DF190074CEE1 /* VLC.xcodeproj */;
 				},
 			);
+			projectRoot = "";
 			targets = (
 				8D1107260486CEB800E47090 /* test */,
 			);