summaryrefslogtreecommitdiffstats
path: root/options/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-18 06:49:48 +0100
committerwm4 <wm4@nowhere>2019-12-18 06:49:48 +0100
commit9b9307ea9fa2a2f7f24b9ebec65ca622900af2f7 (patch)
tree3e67b909d20eac65d4342d614fae2a2d1a68562e /options/m_option.h
parent0a1588d39b2c30421909c87e60b1510ffd338497 (diff)
downloadmpv-9b9307ea9fa2a2f7f24b9ebec65ca622900af2f7.tar.bz2
mpv-9b9307ea9fa2a2f7f24b9ebec65ca622900af2f7.tar.xz
options: fix filter list comparison (again)
This was completely broken: it compared the first item of the filter list only. Apparently I forgot that this is a list. This probably broke aspects of runtime filter changing probably since commit b16cea750f52. Fix this, and remove some redundant code from obj_settings_equals(). Which is not the same as m_obj_settings_equal(), so rename it to make confusing them harder. (obj_setting_match() has these very weird label semantics that should probably just be killed. Or not.)
Diffstat (limited to 'options/m_option.h')
-rw-r--r--options/m_option.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/m_option.h b/options/m_option.h
index 33cbe19986..06b9c53350 100644
--- a/options/m_option.h
+++ b/options/m_option.h
@@ -181,6 +181,8 @@ typedef struct m_obj_settings {
char **attribs;
} m_obj_settings_t;
+bool m_obj_settings_equal(struct m_obj_settings *a, struct m_obj_settings *b);
+
struct m_opt_choice_alternatives {
char *name;
int value;