diff options
author | wm4 <wm4@nowhere> | 2014-12-03 21:54:04 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-03 23:01:19 +0100 |
commit | 920512d358221effa851da8a64fd26a54d154605 (patch) | |
tree | 9500dedad78ed95d70b87605125cab8c1f40d6b6 /video/out/gl_hwdec_vdpau.c | |
parent | 63377744f3dfff04fe02c832b24f8537b78ee8d3 (diff) | |
download | mpv-920512d358221effa851da8a64fd26a54d154605.tar.bz2 mpv-920512d358221effa851da8a64fd26a54d154605.tar.xz |
vo_opengl: move hwdec parts into their own files
This wasn't done before because there was no advantage in "abstracting"
it. This changed, and putting this into its own files is better than
messing it into gl_common.c/h.
Diffstat (limited to 'video/out/gl_hwdec_vdpau.c')
-rw-r--r-- | video/out/gl_hwdec_vdpau.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/gl_hwdec_vdpau.c b/video/out/gl_hwdec_vdpau.c index 2fa262348f..7a68ddd83f 100644 --- a/video/out/gl_hwdec_vdpau.c +++ b/video/out/gl_hwdec_vdpau.c @@ -20,9 +20,8 @@ #include <GL/glx.h> -#include "gl_common.h" +#include "gl_hwdec.h" #include "video/vdpau.h" -#include "video/hwdec.h" #include "video/vdpau_mixer.h" // This is a GL_NV_vdpau_interop specification bug, and headers (unfortunately) @@ -88,6 +87,8 @@ static void destroy(struct gl_hwdec *hw) destroy_objects(hw); mp_vdpau_mixer_destroy(p->mixer); mp_vdpau_destroy(p->ctx); + + hw->info->vdpau_ctx = NULL; } static int create(struct gl_hwdec *hw) |