summaryrefslogtreecommitdiffstats
path: root/video/out/gl_hwdec_vaglx.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-03 21:54:04 +0100
committerwm4 <wm4@nowhere>2014-12-03 23:01:19 +0100
commit920512d358221effa851da8a64fd26a54d154605 (patch)
tree9500dedad78ed95d70b87605125cab8c1f40d6b6 /video/out/gl_hwdec_vaglx.c
parent63377744f3dfff04fe02c832b24f8537b78ee8d3 (diff)
downloadmpv-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_vaglx.c')
-rw-r--r--video/out/gl_hwdec_vaglx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/gl_hwdec_vaglx.c b/video/out/gl_hwdec_vaglx.c
index a8b3a3f8ad..3d7af74d19 100644
--- a/video/out/gl_hwdec_vaglx.c
+++ b/video/out/gl_hwdec_vaglx.c
@@ -24,9 +24,8 @@
#include <va/va_glx.h>
#include "x11_common.h"
-#include "gl_common.h"
+#include "gl_hwdec.h"
#include "video/vaapi.h"
-#include "video/hwdec.h"
struct priv {
struct mp_log *log;
@@ -58,6 +57,8 @@ static void destroy(struct gl_hwdec *hw)
struct priv *p = hw->priv;
destroy_texture(hw);
va_destroy(p->ctx);
+
+ hw->info->vaapi_ctx = NULL;
}
static int create(struct gl_hwdec *hw)