mirror of https://github.com/mpv-player/mpv
c070fa865f
Change how m_config is initialized. Make it more uniform; now all m_config structs are intialized in exactly the same way. Make sure there's only a single m_option[] array defining the options, and keep around the pointer to the optstruct default value, and the optstruct size as well. This will allow reconstructing the option default values in the following commit. In particular, stop pretending that the handling of some special options (like --profile, --v, and some others) is in any way elegant, and make them explicit hacks. This is really more readable and easier to understand than what was before, and simplifies the code. |
||
---|---|---|
.. | ||
aspect.c | ||
aspect.h | ||
bitmap_packer.c | ||
bitmap_packer.h | ||
cocoa_common.h | ||
cocoa_common.m | ||
d3d_shader_yuv.h | ||
d3d_shader_yuv.hlsl | ||
dither.c | ||
dither.h | ||
filter_kernels.c | ||
filter_kernels.h | ||
gl_cocoa.c | ||
gl_common.c | ||
gl_common.h | ||
gl_header_fixes.h | ||
gl_lcms.c | ||
gl_lcms.h | ||
gl_osd.c | ||
gl_osd.h | ||
gl_video.c | ||
gl_video.h | ||
gl_video_shaders.glsl | ||
gl_w32.c | ||
gl_wayland.c | ||
gl_x11.c | ||
pnm_loader.c | ||
pnm_loader.h | ||
vo.c | ||
vo.h | ||
vo_caca.c | ||
vo_corevideo.h | ||
vo_corevideo.m | ||
vo_direct3d.c | ||
vo_image.c | ||
vo_lavc.c | ||
vo_null.c | ||
vo_opengl.c | ||
vo_opengl_old.c | ||
vo_sdl.c | ||
vo_vdpau.c | ||
vo_x11.c | ||
vo_xv.c | ||
w32_common.c | ||
w32_common.h | ||
wayland_common.c | ||
wayland_common.h | ||
x11_common.c | ||
x11_common.h |