From a3f505d4cb2ca70071bbe849d9cf5859802ff608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 24 Nov 2023 00:20:45 +0100 Subject: [PATCH] vaapi: bump vaapi info callback to verbose messages The info provided for libva might be useful. Specifically on Windows it seems to not use the error callback for what should be logged as error. [ 0.080][v][vaapi] libva: VA-API version 1.20.0 [ 0.080][v][vaapi] libva: Trying to open /vaon12_drv_video.dll [ 0.080][v][vaapi] libva: va_openDriver() returns -1 [ 0.080][e][vaapi] Failed to initialize VAAPI: unknown libva error As we can see only the "unknown" error is printed to the error callback and important information is printed on the info callback. Print it to verbose log to make it easier to find. --- video/vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/vaapi.c b/video/vaapi.c index 7997da2b2f..b1b9a518ea 100644 --- a/video/vaapi.c +++ b/video/vaapi.c @@ -92,7 +92,7 @@ static void va_error_callback(void *context, const char *msg) static void va_info_callback(void *context, const char *msg) { - va_message_callback(context, msg, MSGL_DEBUG); + va_message_callback(context, msg, MSGL_V); } static void free_device_ref(struct AVHWDeviceContext *hwctx)