summaryrefslogtreecommitdiffstats
path: root/player/scripting.c
diff options
context:
space:
mode:
authorchuck- <chuck-@users.noreply.github.com>2020-06-12 10:42:01 +0200
committerDudemanguy <random342@airmail.cc>2023-09-20 02:16:45 +0000
commit0084854f8fcf3369a7d7e2fb84c13138fb034422 (patch)
treeddfe8ab7801e597a53075661c7ebc42f9af3d592 /player/scripting.c
parent703f1588803eaa428e09c0e5547b26c0fff476a7 (diff)
downloadmpv-0084854f8fcf3369a7d7e2fb84c13138fb034422.tar.bz2
mpv-0084854f8fcf3369a7d7e2fb84c13138fb034422.tar.xz
scripting: dll cplugins
Diffstat (limited to 'player/scripting.c')
-rw-r--r--player/scripting.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/player/scripting.c b/player/scripting.c
index 3db879778c..48153ef6df 100644
--- a/player/scripting.c
+++ b/player/scripting.c
@@ -295,7 +295,9 @@ bool mp_load_scripts(struct MPContext *mpctx)
#if HAVE_CPLUGINS
+#if !HAVE_WIN32
#include <dlfcn.h>
+#endif
#define MPV_DLOPEN_FN "mpv_open_cplugin"
typedef int (*mpv_open_cplugin)(mpv_handle *handle);
@@ -319,8 +321,13 @@ error: ;
}
const struct mp_scripting mp_scripting_cplugin = {
+ #if HAVE_WIN32
+ .name = "DLL plugin",
+ .file_ext = "dll",
+ #else
.name = "SO plugin",
.file_ext = "so",
+ #endif
.load = load_cplugin,
};