diff options
author | 2015-06-09 22:30:32 +0200 | |
---|---|---|
committer | 2015-06-09 22:30:32 +0200 | |
commit | 4a90b15f74281dce6d0502b4005cbff3c4e7cff3 (patch) | |
tree | 759239a393e0790db297e0859e9efc19c7822964 /common/codecs.c | |
parent | f51459c07710a3e250339e10949d9f673c175a05 (diff) |
vo_opengl: fix dangling pointers with vo_cmdline
gl_video_set_options() does not acquire ownership of the opts parameter
or its contents. In case of vo_cmdline, opts will point to temporary
memory. This memory will be free'd at a later point, and p->opts will
point to free'd memory on the next reinitialization.
The fix is pretty ugly, but it's a quick bug fix. This can probably be
removed once VO sub-options are exposed as properties.
Fixes #2035.
Diffstat (limited to 'common/codecs.c')
0 files changed, 0 insertions, 0 deletions