mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 13:47:04 +00:00
scripting: dll cplugins
This commit is contained in:
parent
703f158880
commit
0084854f8f
@ -295,7 +295,9 @@ bool mp_load_scripts(struct MPContext *mpctx)
|
|||||||
|
|
||||||
#if HAVE_CPLUGINS
|
#if HAVE_CPLUGINS
|
||||||
|
|
||||||
|
#if !HAVE_WIN32
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MPV_DLOPEN_FN "mpv_open_cplugin"
|
#define MPV_DLOPEN_FN "mpv_open_cplugin"
|
||||||
typedef int (*mpv_open_cplugin)(mpv_handle *handle);
|
typedef int (*mpv_open_cplugin)(mpv_handle *handle);
|
||||||
@ -319,8 +321,13 @@ error: ;
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct mp_scripting mp_scripting_cplugin = {
|
const struct mp_scripting mp_scripting_cplugin = {
|
||||||
|
#if HAVE_WIN32
|
||||||
|
.name = "DLL plugin",
|
||||||
|
.file_ext = "dll",
|
||||||
|
#else
|
||||||
.name = "SO plugin",
|
.name = "SO plugin",
|
||||||
.file_ext = "so",
|
.file_ext = "so",
|
||||||
|
#endif
|
||||||
.load = load_cplugin,
|
.load = load_cplugin,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user