From 05ffde6599fde77cf3e5cd6e244063563f88c112 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 1 Feb 2016 20:02:52 +0100 Subject: 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. --- video/out/opengl/hwdec_vaglx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/opengl/hwdec_vaglx.c') diff --git a/video/out/opengl/hwdec_vaglx.c b/video/out/opengl/hwdec_vaglx.c index ff97d14857..77b1f27c51 100644 --- a/video/out/opengl/hwdec_vaglx.c +++ b/video/out/opengl/hwdec_vaglx.c @@ -194,7 +194,8 @@ static int map_image(struct gl_hwdec *hw, struct mp_image *hw_image, } const struct gl_hwdec_driver gl_hwdec_vaglx = { - .api_name = "vaapi", + .name = "vaapi-glx", + .api = HWDEC_VAAPI, .imgfmt = IMGFMT_VAAPI, .create = create, .reinit = reinit, -- cgit v1.2.3