Fixed bug with loading non-multitrack files.
parent
0a1630db7e
commit
7314c6cba1
|
@ -27,7 +27,11 @@
|
|||
if (status != noErr)
|
||||
return nil;
|
||||
|
||||
return [NSURL URLWithString:[[[NSURL fileURLWithPath: [NSString stringWithUTF8String:(const char *)path]] absoluteString] stringByAppendingFormat:@"#%@", self.fragment]];
|
||||
NSString *after = @"";
|
||||
if (self.fragment != nil) {
|
||||
after = [@"#" stringByAppendingString:self.fragment];
|
||||
}
|
||||
return [NSURL URLWithString:[[[NSURL fileURLWithPath: [NSString stringWithUTF8String:(const char *)path]] absoluteString] stringByAppendingString:after]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue