Fixed bug with loading non-multitrack files.
parent
0a1630db7e
commit
7314c6cba1
|
@ -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 New Issue