summaryrefslogtreecommitdiffstats
path: root/player/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua.c')
-rw-r--r--player/lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c
index 3037fe864c..9d7ecaa0ca 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -297,7 +297,7 @@ static void fuck_lua(lua_State *L, const char *search_path, const char *extra)
while (path.len) {
bstr item;
bstr_split_tok(path, ";", &item, &path);
- if (bstr_startswith0(item, "/")) {
+ if (mp_path_is_absolute(item)) {
newpath = talloc_asprintf_append(newpath, "%s%.*s",
newpath[0] ? ";" : "",
BSTR_P(item));