diff options
author | wm4 <wm4@nowhere> | 2015-02-02 22:43:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-02 22:43:13 +0100 |
commit | 2a9534871d51965b4b6b6fb688397096df963c89 (patch) | |
tree | a5a95ffd0c1903d57b2966d1ce046b2dfd640f64 /video/out | |
parent | c07e046bfa5a736ddf6c185b48cd1c6929840186 (diff) | |
download | mpv-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/out')
-rw-r--r-- | video/out/gl_hwdec_vda.c | 1 | ||||
-rw-r--r-- | video/out/vo_opengl_cb.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/video/out/gl_hwdec_vda.c b/video/out/gl_hwdec_vda.c index bc18983d3d..181674f641 100644 --- a/video/out/gl_hwdec_vda.c +++ b/video/out/gl_hwdec_vda.c @@ -89,6 +89,7 @@ static int create(struct gl_hwdec *hw) return -1; hw->hwctx = &p->hwctx; + hw->hwctx->type = HWDEC_VDA; hw->hwctx->download_image = download_image; GL *gl = hw->gl; diff --git a/video/out/vo_opengl_cb.c b/video/out/vo_opengl_cb.c index cee0bc1d46..7334d31add 100644 --- a/video/out/vo_opengl_cb.c +++ b/video/out/vo_opengl_cb.c @@ -27,8 +27,6 @@ #include "gl_video.h" #include "gl_hwdec.h" -#include "video/decode/lavc.h" // HWDEC_* values - #include "libmpv/opengl_cb.h" /* |