diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-03-19 12:02:19 -0400 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-19 19:30:27 +0100 |
commit | 5fea0f9a475fc6ce9bfb4ca18da489c881313ce8 (patch) | |
tree | a4965994350ee8001f26e9ad148c941bcb8c5128 /video/out/vulkan | |
parent | df01ebaafcd93fdc7d48e4e8292daf5f1e932f16 (diff) | |
download | mpv-5fea0f9a475fc6ce9bfb4ca18da489c881313ce8.tar.bz2 mpv-5fea0f9a475fc6ce9bfb4ca18da489c881313ce8.tar.xz |
various: use thread safe mp_strerror()
Diffstat (limited to 'video/out/vulkan')
-rw-r--r-- | video/out/vulkan/context_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vulkan/context_display.c b/video/out/vulkan/context_display.c index 84cef1e8c2..fd2baf0a44 100644 --- a/video/out/vulkan/context_display.c +++ b/video/out/vulkan/context_display.c @@ -15,6 +15,7 @@ * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ +#include "common/common.h" #include "context.h" #include "options/m_config.h" #include "utils.h" @@ -296,7 +297,7 @@ static void open_render_fd(struct ra_ctx *ctx, const char *render_path) p->drm_params.render_fd = open(render_path, O_RDWR | O_CLOEXEC); if (p->drm_params.render_fd == -1) { MP_WARN(ctx, "Failed to open render node: %s\n", - strerror(errno)); + mp_strerror(errno)); } } |