summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-09 11:58:55 +0200
committerwm4 <wm4@nowhere>2017-08-09 12:00:56 +0200
commitde6d3f8ca10f22901d1cdfb44d117e7ef3eabcc1 (patch)
treef2380e4ae2832c632d5629781cee1131763a063c /video/out/opengl/video.c
parent7397e8ab42acd4dcb12943949e902e3df2738085 (diff)
downloadmpv-de6d3f8ca10f22901d1cdfb44d117e7ef3eabcc1.tar.bz2
mpv-de6d3f8ca10f22901d1cdfb44d117e7ef3eabcc1.tar.xz
vd_lavc: fix device leak with copy-mode hwaccels
Apparently this was broken by the "ctx->hwdec" check in the if condition guarding the destroy call, and "ctx->hwdec = NULL;" was moved up earlier, making this always dead code. This should probably be refcounted or so, although that could make it worse as well. For now, add a flag whether the device should be destroyed. Fixes #4735.
Diffstat (limited to 'video/out/opengl/video.c')
0 files changed, 0 insertions, 0 deletions