Browse Source

compilation fix for devices

Felix Paul Kühne 12 years ago
parent
commit
5dd428a1b2
2 changed files with 8 additions and 4 deletions
  1. 2 2
      AspenProject/VLCAppDelegate.m
  2. 6 2
      AspenProject/VLCMovieViewController.m

+ 2 - 2
AspenProject/VLCAppDelegate.m

@@ -82,8 +82,8 @@
 #if LOCAL_PLAYBACK_HACK && TARGET_IPHONE_SIMULATOR
     NSString *directoryPath = @"/Users/fkuehne/Desktop/VideoLAN docs/Clips/sel/";
 #else
-    NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSUserDomainMask, NSDocumentDirectory, YES);
-    NSString *directoryPath = [paths objectAtIndex:0];
+    NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
+    NSString *directoryPath = [searchPaths objectAtIndex:0];
 #endif
     NSArray *foundFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:nil];
     NSMutableArray *filePaths = [NSMutableArray arrayWithCapacity:[foundFiles count]];

+ 6 - 2
AspenProject/VLCMovieViewController.m

@@ -31,9 +31,8 @@
         _mediaItem = [newMediaItem retain];
     }
 
-    if (self.masterPopoverController != nil) {
+    if (self.masterPopoverController != nil)
         [self.masterPopoverController dismissPopoverAnimated:YES];
-    }
 }
 
 - (void)viewDidLoad
@@ -103,6 +102,11 @@
     self.timeDisplay.title = [[_mediaPlayer remainingTime] stringValue];
 }
 
+- (void)mediaPlayerStateChanged:(NSNotification *)aNotification
+{
+    // TODO
+}
+
 - (IBAction)play:(id)sender
 {
     if ([_mediaPlayer isPlaying]) {