mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 11:12:56 +00:00
path: fix user path resolution
Forgot to add the remainder to the path.
This commit is contained in:
parent
fd7bf9c07a
commit
dd2c65429f
@ -185,8 +185,8 @@ char *mp_get_user_path(void *talloc_ctx, struct mpv_global *global,
|
|||||||
} else {
|
} else {
|
||||||
char type[80];
|
char type[80];
|
||||||
snprintf(type, sizeof(type), "%.*s", BSTR_P(prefix));
|
snprintf(type, sizeof(type), "%.*s", BSTR_P(prefix));
|
||||||
res = talloc_strdup(talloc_ctx,
|
const char *p = mp_get_platform_path(talloc_ctx, type);
|
||||||
mp_get_platform_path(talloc_ctx, type));
|
res = mp_path_join(talloc_ctx, bstr0(p), rest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user