Add VA-API driver version information
-
Create a common "_srt_open_elf()" function
Create a function that opens a library and initializes its Elf. This allows us to reduce code duplication.
-
Add VA-API driver version information
For VA-API drivers we can expect to obtain the libva version they depend on.
This is performed by looking for a symbol that has the form of "__vaDriverInit_x_y", where x represents the VA-API major version minus one, and y the minor version. In the unexpected situation where there are multiple "_vaDriverInit*" symbols with different minor versions, we use the one with the higher value because that will give use the minimum required version.
The version check, when not needed, can be disabled with the flag
SRT_CHECK_FLAGS_SKIP_SLOW_CHECKS
.
Addresses: #7 (closed)