From 1cb085a82e89ce4c9150871c910c75d9404d1e01 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 29 Nov 2019 00:16:52 +0100 Subject: options: get rid of GLOBAL_CONFIG hack Just an implementation detail that can be cleaned up now. Internally, m_config maintains a tree of m_sub_options structs, except for the root it was not defined explicitly. GLOBAL_CONFIG was a hack to get access to it anyway. Define it explicitly instead. --- options/options.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'options/options.h') diff --git a/options/options.h b/options/options.h index 126e4cb59a..1935888032 100644 --- a/options/options.h +++ b/options/options.h @@ -355,8 +355,6 @@ struct filter_opts { int deinterlace; }; -extern const m_option_t mp_opts[]; -extern const struct MPOpts mp_default_opts; extern const struct m_sub_options vo_sub_opts; extern const struct m_sub_options dvd_conf; extern const struct m_sub_options mp_subtitle_sub_opts; @@ -364,5 +362,6 @@ extern const struct m_sub_options mp_osd_render_sub_opts; extern const struct m_sub_options filter_conf; extern const struct m_sub_options resample_conf; extern const struct m_sub_options stream_conf; +extern const struct m_sub_options mp_opt_root; #endif -- cgit v1.2.3