summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-06 14:15:31 +0100
committerwm4 <wm4@nowhere>2020-02-06 14:15:31 +0100
commit7c5c05771796468f96c97e03a692b0dbeb484e02 (patch)
tree40901fda629a9d11deff976cb282c86cc8459d53
parent1dc3507474aeb82d023d4fc2949d25fc774e2ce0 (diff)
downloadmpv-7c5c05771796468f96c97e03a692b0dbeb484e02.tar.bz2
mpv-7c5c05771796468f96c97e03a692b0dbeb484e02.tar.xz
lua: use mp_path_is_absolute() for checking package paths
This makes it work with the shitty OS. Behavior on Linux should be the same.
-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));