From 3006c4ba5dd119160bdcf1d650c66197a44de602 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Mar 2020 14:04:14 +0100 Subject: options: remove min/max support from strings and string lists We don't really use this anymore. Only --playlist and vf_lavfi filter names did (to error on empty parameters), but it doesn't really matter. --- filters/f_lavfi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'filters') diff --git a/filters/f_lavfi.c b/filters/f_lavfi.c index 71624a449b..2e612d14fc 100644 --- a/filters/f_lavfi.c +++ b/filters/f_lavfi.c @@ -1091,7 +1091,7 @@ const struct mp_user_filter_entry af_lavfi = { .name = "lavfi", .priv_size = sizeof(OPT_BASE_STRUCT), .options = (const m_option_t[]){ - OPT_STRING("graph", graph, M_OPT_MIN, .min = 1), + OPT_STRING("graph", graph, 0), OPT_FLAG("fix-pts", fix_pts, 0), OPT_KEYVALUELIST("o", avopts, 0), {0} @@ -1110,7 +1110,7 @@ const struct mp_user_filter_entry af_lavfi_bridge = { .name = "lavfi-bridge", .priv_size = sizeof(OPT_BASE_STRUCT), .options = (const m_option_t[]){ - OPT_STRING("name", filter_name, M_OPT_MIN, .min = 1), + OPT_STRING("name", filter_name, 0), OPT_KEYVALUELIST("opts", filter_opts, 0), OPT_KEYVALUELIST("o", avopts, 0), {0} @@ -1130,7 +1130,7 @@ const struct mp_user_filter_entry vf_lavfi = { .name = "lavfi", .priv_size = sizeof(OPT_BASE_STRUCT), .options = (const m_option_t[]){ - OPT_STRING("graph", graph, M_OPT_MIN, .min = 1), + OPT_STRING("graph", graph, 0), OPT_KEYVALUELIST("o", avopts, 0), {0} }, @@ -1148,7 +1148,7 @@ const struct mp_user_filter_entry vf_lavfi_bridge = { .name = "lavfi-bridge", .priv_size = sizeof(OPT_BASE_STRUCT), .options = (const m_option_t[]){ - OPT_STRING("name", filter_name, M_OPT_MIN, .min = 1), + OPT_STRING("name", filter_name, 0), OPT_KEYVALUELIST("opts", filter_opts, 0), OPT_KEYVALUELIST("o", avopts, 0), {0} -- cgit v1.2.3