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

Andreas Kies andikies at web.de
Sat Sep 10 20:12:59 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-improve-VAAPI-error-handling.patch
Type: text/x-patch
Size: 3354 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220910/8feebb2c/attachment.bin>


More information about the ffmpeg-devel mailing list