summaryrefslogtreecommitdiffstats
path: root/options/m_option.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-06-04 20:48:56 +0200
committerwm4 <wm4@nowhere>2016-06-04 20:48:56 +0200
commit65f5fbc5d4457b68a304a68a52a41fecc0b25f15 (patch)
treea6e6b54597889a989d3e92e59f45cc76a7c888d0 /options/m_option.c
parent352904fd036c5d9dbe53e3726a0c4fdcfe408c24 (diff)
downloadmpv-65f5fbc5d4457b68a304a68a52a41fecc0b25f15.tar.bz2
mpv-65f5fbc5d4457b68a304a68a52a41fecc0b25f15.tar.xz
vo_opengl: somewhat simplify suboption handling mess
Enable m_sub_options_copy() to copy nested sub-options, and also enable it to create an option struct from defaults. We can get rid of most of the crap in assign_options() now. Calling handle_scaler_opt() to get a static allocation for scaler name is still needed. It's moved to reinit_scaler(), which seems to be a better place for it. Without it, dangling pointers could be created when options are changed. (And in fact, this fixes possible dangling pointers for window.name.) In theory we could create a dynamic copy, but that seemed even more messy. Chance of regressions.
Diffstat (limited to 'options/m_option.c')
0 files changed, 0 insertions, 0 deletions