diff options
Diffstat (limited to 'osdep/path-macosx.m')
-rw-r--r-- | osdep/path-macosx.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/osdep/path-macosx.m b/osdep/path-macosx.m index c5240f570e..83fb113e8d 100644 --- a/osdep/path-macosx.m +++ b/osdep/path-macosx.m @@ -20,12 +20,11 @@ #include "options/path.h" #include "osdep/path.h" -char *mp_get_macosx_bundled_path(void *talloc_ctx, struct mpv_global *global, - const char *file) +char *mp_get_macosx_bundle_dir(void *talloc_ctx) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSString *path = [[NSBundle mainBundle] resourcePath]; - char *rv = mp_path_join(talloc_ctx, bstr0([path UTF8String]), bstr0(file)); + char *rv = talloc_strdup(talloc_ctx, [path UTF8String]); [pool release]; return rv; } |