Fixed bug with loading non-multitrack files.
This commit is contained in:
parent
0a1630db7e
commit
7314c6cba1
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,11 @@
|
||||||
if (status != noErr)
|
if (status != noErr)
|
||||||
return nil;
|
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
|
@end
|
||||||
|
|
Loading…
Reference in a new issue