summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec_vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-01 20:02:52 +0100
committerwm4 <wm4@nowhere>2016-02-01 20:02:52 +0100
commit05ffde6599fde77cf3e5cd6e244063563f88c112 (patch)
treee457d31f4c937605da5958754da62d8b4f4f8c48 /video/out/opengl/hwdec_vdpau.c
parenta9dfd8d557b1651e6d9ae7a374426dbcd856da99 (diff)
downloadmpv-05ffde6599fde77cf3e5cd6e244063563f88c112.tar.bz2
mpv-05ffde6599fde77cf3e5cd6e244063563f88c112.tar.xz
vo_opengl: hwdec: use IDs for API, and log which backend is used
Since there can be multiple backends for a single API (vaapi can use GLX or EGL), not logging the exact backend name is annoying. So add it. At the same time, there is no need to duplicate the name as used by the --hwdec options, so replace it with using the numeric hwdec API ID.
Diffstat (limited to 'video/out/opengl/hwdec_vdpau.c')
-rw-r--r--video/out/opengl/hwdec_vdpau.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_vdpau.c b/video/out/opengl/hwdec_vdpau.c
index f6f9367980..2396d8ad5d 100644
--- a/video/out/opengl/hwdec_vdpau.c
+++ b/video/out/opengl/hwdec_vdpau.c
@@ -200,7 +200,8 @@ static int map_image(struct gl_hwdec *hw, struct mp_image *hw_image,
}
const struct gl_hwdec_driver gl_hwdec_vdpau = {
- .api_name = "vdpau",
+ .name = "vdpau-glx",
+ .api = HWDEC_VDPAU,
.imgfmt = IMGFMT_VDPAU,
.create = create,
.reinit = reinit,