summaryrefslogtreecommitdiffstats
path: root/video/vaapi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-02 22:43:05 +0100
committerwm4 <wm4@nowhere>2015-02-02 22:43:13 +0100
commit2a9534871d51965b4b6b6fb688397096df963c89 (patch)
treea5a95ffd0c1903d57b2966d1ce046b2dfd640f64 /video/vaapi.c
parentc07e046bfa5a736ddf6c185b48cd1c6929840186 (diff)
downloadmpv-2a9534871d51965b4b6b6fb688397096df963c89.tar.bz2
mpv-2a9534871d51965b4b6b6fb688397096df963c89.tar.xz
command: add property returning detected hwdec API
This is somewhat imperfect, because detection of hw decoding APIs is mostly done on demand, and often avoided if not necessary. (For example, we know very well that there are no hw decoders for certain codecs.) This also requires every hwdec backend to identify itself (see hwdec.h changes).
Diffstat (limited to 'video/vaapi.c')
-rw-r--r--video/vaapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/vaapi.c b/video/vaapi.c
index 54d75e775a..8b95dde85d 100644
--- a/video/vaapi.c
+++ b/video/vaapi.c
@@ -130,6 +130,7 @@ struct mp_vaapi_ctx *va_initialize(VADisplay *display, struct mp_log *plog)
.log = talloc_steal(res, log),
.display = display,
.hwctx = {
+ .type = HWDEC_VAAPI,
.priv = res,
.vaapi_ctx = res,
.download_image = ctx_download_image,