Commit 5dd428a1 authored by Felix Paul Kühne's avatar Felix Paul Kühne

compilation fix for devices

parent ae52ba83
......@@ -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]];
......
......@@ -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]) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment