summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-04 00:02:21 +0100
committerwm4 <wm4@nowhere>2013-11-04 00:11:43 +0100
commit2d58fb3b8e7e87a939220f50a51294f8efdc51e1 (patch)
treefa8eae8b6a759dea1bd086834071521a8781315b /video/decode
parent571e697a7c557d10bcc9130915c431829981d877 (diff)
downloadmpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.bz2
mpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.xz
vo_opengl: add support for VA-API OpenGL interop
VA-API's OpenGL/GLX interop is pretty bad and perhaps slow (renders a X11 pixmap into a FBO, and has to go over X11, probably involves one or more copies), and this code serves more as an example, rather than for serious use. On the other hand, this might be work much better than vo_vaapi, even if slightly slower.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vaapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c
index bb2a6c1049..4603a3c5e1 100644
--- a/video/decode/vaapi.c
+++ b/video/decode/vaapi.c
@@ -421,6 +421,7 @@ static int init(struct lavc_ctx *ctx)
static int probe(struct vd_lavc_hwdec *hwdec, struct mp_hwdec_info *info,
const char *decoder)
{
+ hwdec_request_api(info, "vaapi");
if (!info || !info->vaapi_ctx)
return HWDEC_ERR_NO_CTX;
if (!hwdec_check_codec_support(decoder, profiles))