summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-03-19 07:41:53 +0100
committerwm4 <wm4@nowhere>2017-03-19 09:03:13 +0100
commitd2dc29f2218eb3e065a174d3951d27b58c9f0a0e (patch)
treeea909d3c81639e02b1cf70ee578d77dabe5f2ce0 /video/image_writer.c
parent03933f35641c65f502dc1e05ad8308e71a44d4fb (diff)
downloadmpv-d2dc29f2218eb3e065a174d3951d27b58c9f0a0e.tar.bz2
mpv-d2dc29f2218eb3e065a174d3951d27b58c9f0a0e.tar.xz
vo_opengl: context_vdpau: minor fixes
Don't assume 0 is an invalid object handle. vdpau with its weird API design makes all objects indexes, with 0 being a perfectly valid and common value. You need to use VDP_INVALID_HANDLE, which is not 0. Don't crash if init fails at vdpau initialization. It's because mp_vdpau_destroy(NULL) crashes. Simplify it. Destroy output surface backed FBO before output surface. Also, strictly bookkeep the map/unmap calls (and unmap surfaces before destroying the FBO/texture). I can't see a change in the weird errors when resizing the window, but I guess it's slightly more correct. Add the GL_WRITE_DISCARD_NV symbol to header_fixes.h, because we might fail compilation with headers that do not contain the vdpau extension (well, probably doesn't matter).
Diffstat (limited to 'video/image_writer.c')
0 files changed, 0 insertions, 0 deletions