1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 10:32:15 +00:00
mpv/options
NRK 0bfafd2451 options: drop unnecessary casts
the reason for these casts are unknown but they were presumably to
silence warnings 9 years ago. but it doesn't seem to be necessary
nowadays, so just drop the casts and also drop the `const` from the
compound literal type.

some small technical notes:

1. while string literals aren't `const` in C, writing to them is
   undefined (do not ask me why). and so compilers will typically put
   string literals into read only section anyways, regardless of
   weather `const` was used in the source or not. so this shouldn't make
   any difference codegen wise.
2. making the array of pointers `const` on the other hand might affect
   codegen, eg: `(char *const []){...}`. however, that'd trigger a lot
   of discarded qualifier warnings.
2023-06-30 10:22:15 +02:00
..
m_config_core.c osdep: rename MP_UNREACHABLE 2021-11-03 15:15:20 +01:00
m_config_core.h options: more pushing code around 2020-03-13 16:50:27 +01:00
m_config_frontend.c options: log profile name if there is no restore data 2022-10-28 15:48:24 +00:00
m_config_frontend.h options: add watch-later-options 2021-07-21 13:19:28 +00:00
m_config.h options: split m_config.c/h 2020-03-13 16:50:27 +01:00
m_option.c various: fix typos 2023-03-28 19:29:44 +00:00
m_option.h client API: reintroduce CONF_TYPE_FLAG for type conversion 2023-02-27 11:21:49 +01:00
m_property.c options: change parameter that was forgottin in property transition 2023-02-27 11:21:49 +01:00
m_property.h options: change parameter that was forgottin in property transition 2023-02-27 11:21:49 +01:00
options.c options: drop unnecessary casts 2023-06-30 10:22:15 +02:00
options.h sub: rewrite auto-forced-only support 2023-06-25 11:01:58 +02:00
parse_commandline.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
parse_commandline.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
parse_configfile.c options: read config file as stream 2023-04-29 22:34:54 +00:00
parse_configfile.h options: read config file as stream 2023-04-29 22:34:54 +00:00
path.c path: handle URLs consistently in mp_basename 2023-06-01 22:47:48 +02:00
path.h path: expand internal path selection API to allow for additional types 2023-05-09 20:37:17 +00:00