فهرست منبع

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

Pierre d'Herbemont 17 سال پیش
والد
کامیت
6ac59b8caa
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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 */,
 			);