1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

context_drm_egl: remove references to VAAPI in error messages

VAAPI is not the only hwdec that won't work when the render node
isn't available.
This commit is contained in:
sfan5 2023-08-20 18:21:38 +02:00
parent d15f11a9f7
commit 88d0383a26

View File

@ -693,13 +693,12 @@ static bool drm_egl_init(struct ra_ctx *ctx)
MP_VERBOSE(ctx, "Opening render node \"%s\"\n", rendernode_path); MP_VERBOSE(ctx, "Opening render node \"%s\"\n", rendernode_path);
p->drm_params.render_fd = open(rendernode_path, O_RDWR | O_CLOEXEC); p->drm_params.render_fd = open(rendernode_path, O_RDWR | O_CLOEXEC);
if (p->drm_params.render_fd == -1) { if (p->drm_params.render_fd == -1) {
MP_WARN(ctx, "Cannot open render node \"%s\": %s. VAAPI hwdec will be disabled\n", MP_WARN(ctx, "Cannot open render node: %s\n", mp_strerror(errno));
rendernode_path, mp_strerror(errno));
} }
free(rendernode_path); free(rendernode_path);
} else { } else {
p->drm_params.render_fd = -1; p->drm_params.render_fd = -1;
MP_VERBOSE(ctx, "Could not find path to render node. VAAPI hwdec will be disabled\n"); MP_VERBOSE(ctx, "Could not find path to render node.\n");
} }
struct ra_gl_ctx_params params = { struct ra_gl_ctx_params params = {