mirror of
https://github.com/mpv-player/mpv
synced 2025-02-08 07:57:19 +00:00
vf_sub, vf_dlopen: default struct is not needed
This commit is contained in:
parent
4904df42e9
commit
e3809e5b52
@ -44,7 +44,7 @@
|
|||||||
# define DLLSymbol(handle, name) dlsym(handle, name)
|
# define DLLSymbol(handle, name) dlsym(handle, name)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct vf_priv_s {
|
struct vf_priv_s {
|
||||||
char *cfg_dllname;
|
char *cfg_dllname;
|
||||||
int cfg_argc;
|
int cfg_argc;
|
||||||
char *cfg_argv[16];
|
char *cfg_argv[16];
|
||||||
@ -69,7 +69,7 @@ static struct vf_priv_s {
|
|||||||
unsigned int outfmt;
|
unsigned int outfmt;
|
||||||
|
|
||||||
int argc;
|
int argc;
|
||||||
} const vf_priv_dflt = {};
|
};
|
||||||
|
|
||||||
struct fmtname {
|
struct fmtname {
|
||||||
const char *name;
|
const char *name;
|
||||||
@ -379,7 +379,6 @@ const vf_info_t vf_info_dlopen = {
|
|||||||
.name = "dlopen",
|
.name = "dlopen",
|
||||||
.open = vf_open,
|
.open = vf_open,
|
||||||
.priv_size = sizeof(struct vf_priv_s),
|
.priv_size = sizeof(struct vf_priv_s),
|
||||||
.priv_defaults = &vf_priv_dflt,
|
|
||||||
.options = vf_opts_fields,
|
.options = vf_opts_fields,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,15 +42,13 @@
|
|||||||
|
|
||||||
#include "mpvcore/m_option.h"
|
#include "mpvcore/m_option.h"
|
||||||
|
|
||||||
static const struct vf_priv_s {
|
struct vf_priv_s {
|
||||||
int opt_top_margin, opt_bottom_margin;
|
int opt_top_margin, opt_bottom_margin;
|
||||||
|
|
||||||
int outh, outw;
|
int outh, outw;
|
||||||
|
|
||||||
struct osd_state *osd;
|
struct osd_state *osd;
|
||||||
struct mp_osd_res dim;
|
struct mp_osd_res dim;
|
||||||
} vf_priv_dflt = {
|
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int config(struct vf_instance *vf,
|
static int config(struct vf_instance *vf,
|
||||||
@ -150,6 +148,5 @@ const vf_info_t vf_info_sub = {
|
|||||||
.name = "sub",
|
.name = "sub",
|
||||||
.open = vf_open,
|
.open = vf_open,
|
||||||
.priv_size = sizeof(struct vf_priv_s),
|
.priv_size = sizeof(struct vf_priv_s),
|
||||||
.priv_defaults = &vf_priv_dflt,
|
|
||||||
.options = vf_opts_fields,
|
.options = vf_opts_fields,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user