summaryrefslogtreecommitdiffstats
path: root/video/out/gl_utils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-09 22:30:32 +0200
committerwm4 <wm4@nowhere>2015-06-09 22:30:32 +0200
commit4a90b15f74281dce6d0502b4005cbff3c4e7cff3 (patch)
tree759239a393e0790db297e0859e9efc19c7822964 /video/out/gl_utils.c
parentf51459c07710a3e250339e10949d9f673c175a05 (diff)
downloadmpv-4a90b15f74281dce6d0502b4005cbff3c4e7cff3.tar.bz2
mpv-4a90b15f74281dce6d0502b4005cbff3c4e7cff3.tar.xz
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 'video/out/gl_utils.c')
0 files changed, 0 insertions, 0 deletions