diff --git a/video/filter/vf_dlopen.c b/video/filter/vf_dlopen.c index 5f41c427a9..2378b84674 100644 --- a/video/filter/vf_dlopen.c +++ b/video/filter/vf_dlopen.c @@ -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, }; diff --git a/video/filter/vf_sub.c b/video/filter/vf_sub.c index 643339c4eb..34f22e02ce 100644 --- a/video/filter/vf_sub.c +++ b/video/filter/vf_sub.c @@ -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, };