diff options
Diffstat (limited to 'video/out/hwdec')
-rw-r--r-- | video/out/hwdec/hwdec_cuda.c | 7 | ||||
-rw-r--r-- | video/out/hwdec/hwdec_cuda_vk.c | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/video/out/hwdec/hwdec_cuda.c b/video/out/hwdec/hwdec_cuda.c index 2a2b296ccd..895fb07d61 100644 --- a/video/out/hwdec/hwdec_cuda.c +++ b/video/out/hwdec/hwdec_cuda.c @@ -37,6 +37,7 @@ int check_cu(const struct ra_hwdec *hw, CUresult err, const char *func) const char *err_string; struct cuda_hw_priv *p = hw->priv; + int level = hw->probing ? MSGL_V : MSGL_ERR; MP_TRACE(hw, "Calling %s\n", func); @@ -46,10 +47,10 @@ int check_cu(const struct ra_hwdec *hw, CUresult err, const char *func) p->cu->cuGetErrorName(err, &err_name); p->cu->cuGetErrorString(err, &err_string); - MP_ERR(hw, "%s failed", func); + MP_MSG(hw, level, "%s failed", func); if (err_name && err_string) - MP_ERR(hw, " -> %s: %s", err_name, err_string); - MP_ERR(hw, "\n"); + MP_MSG(hw, level, " -> %s: %s", err_name, err_string); + MP_MSG(hw, level, "\n"); return -1; } diff --git a/video/out/hwdec/hwdec_cuda_vk.c b/video/out/hwdec/hwdec_cuda_vk.c index 70a0accf42..b8eb153ae1 100644 --- a/video/out/hwdec/hwdec_cuda_vk.c +++ b/video/out/hwdec/hwdec_cuda_vk.c @@ -270,6 +270,7 @@ static bool cuda_ext_vk_signal(const struct ra_hwdec_mapper *mapper, int n) bool cuda_vk_init(const struct ra_hwdec *hw) { int ret = 0; + int level = hw->probing ? MSGL_V : MSGL_ERR; struct cuda_hw_priv *p = hw->priv; CudaFunctions *cu = p->cu; @@ -297,7 +298,7 @@ bool cuda_vk_init(const struct ra_hwdec *hw) { } if (!cu->cuImportExternalMemory) { - MP_ERR(hw, "CUDA hwdec with Vulkan requires driver version 410.48 or newer.\n"); + MP_MSG(hw, level, "CUDA hwdec with Vulkan requires driver version 410.48 or newer.\n"); return false; } @@ -325,7 +326,7 @@ bool cuda_vk_init(const struct ra_hwdec *hw) { } if (display_dev == -1) { - MP_ERR(hw, "Could not match Vulkan display device in CUDA.\n"); + MP_MSG(hw, level, "Could not match Vulkan display device in CUDA.\n"); return false; } |