Fix for multi-track files and the file move watching.
parent
ae469a43ec
commit
0a1630db7e
|
@ -13,6 +13,9 @@
|
|||
|
||||
@interface FilePlaylistEntry : PlaylistEntry {
|
||||
FSRef fileRef;
|
||||
NSString *fragment;
|
||||
}
|
||||
|
||||
@property(retain) NSString *fragment;
|
||||
|
||||
@end
|
||||
|
|
|
@ -11,9 +11,12 @@
|
|||
|
||||
@implementation FilePlaylistEntry
|
||||
|
||||
@synthesize fragment;
|
||||
|
||||
- (void)setURL:(NSURL *)url
|
||||
{
|
||||
FSPathMakeRef((UInt8 *)[[url path] fileSystemRepresentation], &fileRef, NULL);
|
||||
self.fragment = [url fragment];
|
||||
}
|
||||
|
||||
- (NSURL *)URL
|
||||
|
@ -24,7 +27,7 @@
|
|||
if (status != noErr)
|
||||
return nil;
|
||||
|
||||
return [NSURL fileURLWithPath: [NSString stringWithUTF8String:(const char *)path]];
|
||||
return [NSURL URLWithString:[[[NSURL fileURLWithPath: [NSString stringWithUTF8String:(const char *)path]] absoluteString] stringByAppendingFormat:@"#%@", self.fragment]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue