Compare commits
No commits in common. "0e06f5457ca6df8d2c27ece50f462f28ac85c3ff" and "04e40a8370fa01f9834aa05f8a273271692a87f5" have entirely different histories.
0e06f5457c
...
04e40a8370
4 changed files with 2 additions and 15 deletions
|
@ -210,15 +210,8 @@ static BOOL consentLastEnabled = NO;
|
||||||
[playlistLoader addDatabase];
|
[playlistLoader addDatabase];
|
||||||
} else if([[NSFileManager defaultManager] fileExistsAtPath:[basePath stringByAppendingPathComponent:newFilename]]) {
|
} else if([[NSFileManager defaultManager] fileExistsAtPath:[basePath stringByAppendingPathComponent:newFilename]]) {
|
||||||
[playlistLoader addURL:[NSURL fileURLWithPath:[basePath stringByAppendingPathComponent:newFilename]]];
|
[playlistLoader addURL:[NSURL fileURLWithPath:[basePath stringByAppendingPathComponent:newFilename]]];
|
||||||
} else if([[NSFileManager defaultManager] fileExistsAtPath:[basePath stringByAppendingPathComponent:oldFilename]]){
|
|
||||||
/* Without the above check, it appears the code was retrieving a nil NSURL from the nonexistent path
|
|
||||||
* Then adding it to the playlist and crashing further down the line
|
|
||||||
* Nobody on a new setup should be seeing this open anything, so it should fall through to the
|
|
||||||
* notice below.
|
|
||||||
*/
|
|
||||||
[playlistLoader addURL:[NSURL fileURLWithPath:[basePath stringByAppendingPathComponent:oldFilename]]];
|
|
||||||
} else {
|
} else {
|
||||||
ALog(@"No playlist found, leaving it empty.");
|
[playlistLoader addURL:[NSURL fileURLWithPath:[basePath stringByAppendingPathComponent:oldFilename]]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,14 +52,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)open:(NSURL *)url withOutputFormat:(AudioStreamBasicDescription)outputFormat withUserInfo:(id)userInfo withRGInfo:(NSDictionary *)rgi {
|
- (BOOL)open:(NSURL *)url withOutputFormat:(AudioStreamBasicDescription)outputFormat withUserInfo:(id)userInfo withRGInfo:(NSDictionary *)rgi {
|
||||||
if(!url) {
|
|
||||||
DLog(@"Player attempted to play invalid file...");
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
[self setStreamURL:url];
|
[self setStreamURL:url];
|
||||||
[self setUserInfo:userInfo];
|
[self setUserInfo:userInfo];
|
||||||
|
|
||||||
if(![self buildChain]) {
|
if (![self buildChain]) {
|
||||||
DLog(@"Couldn't build processing chain...");
|
DLog(@"Couldn't build processing chain...");
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1112,7 +1112,6 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray *)addURL:(NSURL *)url {
|
- (NSArray *)addURL:(NSURL *)url {
|
||||||
if(!url) return [NSArray array];
|
|
||||||
return [self insertURLs:@[url] atIndex:(int)[[playlistController content] count] sort:NO];
|
return [self insertURLs:@[url] atIndex:(int)[[playlistController content] count] sort:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -420,7 +420,6 @@ static inline void dispatch_async_reentrant(dispatch_queue_t queue, dispatch_blo
|
||||||
}
|
}
|
||||||
|
|
||||||
- (const void *)beginFolderAccess:(NSURL *)fileUrl {
|
- (const void *)beginFolderAccess:(NSURL *)fileUrl {
|
||||||
if(!fileUrl) return NULL;
|
|
||||||
NSURL *folderUrl = [SandboxBroker urlWithoutFragment:fileUrl];
|
NSURL *folderUrl = [SandboxBroker urlWithoutFragment:fileUrl];
|
||||||
if(![folderUrl isFileURL]) return NULL;
|
if(![folderUrl isFileURL]) return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue