mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-22 10:57:08 +00:00
vo: remove unused configs from context
This commit is contained in:
@@ -256,8 +256,6 @@ static void dealloc_vo(struct vo *vo)
|
||||
|
||||
// These must be free'd before vo->in->dispatch.
|
||||
talloc_free(vo->opts_cache);
|
||||
talloc_free(vo->gl_opts_cache);
|
||||
talloc_free(vo->eq_opts_cache);
|
||||
mp_mutex_destroy(&vo->params_mutex);
|
||||
|
||||
mp_mutex_destroy(&vo->in->lock);
|
||||
@@ -308,9 +306,6 @@ static struct vo *vo_create(bool probing, struct mpv_global *global,
|
||||
m_config_cache_set_dispatch_change_cb(vo->opts_cache, vo->in->dispatch,
|
||||
update_opts, vo);
|
||||
|
||||
vo->gl_opts_cache = m_config_cache_alloc(NULL, global, &gl_video_conf);
|
||||
vo->eq_opts_cache = m_config_cache_alloc(NULL, global, &mp_csp_equalizer_conf);
|
||||
|
||||
mp_input_set_mouse_transform(vo->input_ctx, NULL, NULL);
|
||||
if (vo->driver->encode != !!vo->encode_lavc_ctx)
|
||||
goto error;
|
||||
|
||||
@@ -504,8 +504,6 @@ struct vo {
|
||||
|
||||
struct m_config_cache *opts_cache; // cache for ->opts
|
||||
struct mp_vo_opts *opts;
|
||||
struct m_config_cache *gl_opts_cache;
|
||||
struct m_config_cache *eq_opts_cache;
|
||||
|
||||
bool want_redraw; // redraw as soon as possible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user