vf_sub, vf_dlopen: default struct is not needed

This commit is contained in:
wm4 2013-12-05 22:55:09 +01:00
parent 4904df42e9
commit e3809e5b52
2 changed files with 3 additions and 7 deletions

View File

@ -44,7 +44,7 @@
# define DLLSymbol(handle, name) dlsym(handle, name)
#endif
static struct vf_priv_s {
struct vf_priv_s {
char *cfg_dllname;
int cfg_argc;
char *cfg_argv[16];
@ -69,7 +69,7 @@ static struct vf_priv_s {
unsigned int outfmt;
int argc;
} const vf_priv_dflt = {};
};
struct fmtname {
const char *name;
@ -379,7 +379,6 @@ const vf_info_t vf_info_dlopen = {
.name = "dlopen",
.open = vf_open,
.priv_size = sizeof(struct vf_priv_s),
.priv_defaults = &vf_priv_dflt,
.options = vf_opts_fields,
};

View File

@ -42,15 +42,13 @@
#include "mpvcore/m_option.h"
static const struct vf_priv_s {
struct vf_priv_s {
int opt_top_margin, opt_bottom_margin;
int outh, outw;
struct osd_state *osd;
struct mp_osd_res dim;
} vf_priv_dflt = {
0
};
static int config(struct vf_instance *vf,
@ -150,6 +148,5 @@ const vf_info_t vf_info_sub = {
.name = "sub",
.open = vf_open,
.priv_size = sizeof(struct vf_priv_s),
.priv_defaults = &vf_priv_dflt,
.options = vf_opts_fields,
};