[FFmpeg-devel] [PATCH] improve VAAPI error handling

Xiang, Haihao haihao.xiang at intel.com
Mon Sep 19 07:08:31 EEST 2022


> In case something is wrong in vaapi_device_create() you usually just get
> EINVAL, but not the real cause.
> This patch allows to return the cause as set in errno.
> EINVAL is used for kernel driver name mismatch.
> ENODEV in case vaGetDisplayDRM() fails.
> Also changed:
>    Try X11 interface in case vaGetDisplayDRM() fails.
>    Try to open any of the possible 8 devices.

Could you update your commit message ? There is a warning in patchwork check
(See 
https://patchwork.ffmpeg.org/project/ffmpeg/patch/91efc26f-85a3-ceaa-c5ad-a2e23659c60f@web.de/
)

BTW you may add the above message in the commit message too. 

BRs
Haihao



More information about the ffmpeg-devel mailing list