diff options
author | 2016-06-04 20:48:56 +0200 | |
---|---|---|
committer | 2016-06-04 20:48:56 +0200 | |
commit | 65f5fbc5d4457b68a304a68a52a41fecc0b25f15 (patch) | |
tree | a6e6b54597889a989d3e92e59f45cc76a7c888d0 /video/out/vo_opengl_cb.c | |
parent | 352904fd036c5d9dbe53e3726a0c4fdcfe408c24 (diff) |
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 'video/out/vo_opengl_cb.c')
0 files changed, 0 insertions, 0 deletions