diff options
author | wm4 <wm4@nowhere> | 2016-02-01 20:02:52 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-01 20:02:52 +0100 |
commit | 05ffde6599fde77cf3e5cd6e244063563f88c112 (patch) | |
tree | e457d31f4c937605da5958754da62d8b4f4f8c48 /video/out/opengl/hwdec_osx.c | |
parent | a9dfd8d557b1651e6d9ae7a374426dbcd856da99 (diff) | |
download | mpv-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_osx.c')
-rw-r--r-- | video/out/opengl/hwdec_osx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_osx.c b/video/out/opengl/hwdec_osx.c index 53f9781bc9..78d01b3894 100644 --- a/video/out/opengl/hwdec_osx.c +++ b/video/out/opengl/hwdec_osx.c @@ -237,7 +237,8 @@ static void destroy(struct gl_hwdec *hw) } const struct gl_hwdec_driver gl_hwdec_videotoolbox = { - .api_name = "videotoolbox", + .name = "videotoolbox", + .api = HWDEC_VIDEOTOOLBOX, .imgfmt = IMGFMT_VIDEOTOOLBOX, .create = create, .reinit = reinit, |