mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 02:09:52 +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:
parent
d15f11a9f7
commit
88d0383a26
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user