hw/amf: let the AMF system know what version was used to compile

With future drivers and old binaries it may trigger different code
pathes than the latest version.
This commit is contained in:
Steve Lhomme 2024-09-25 11:37:02 +02:00
parent 3d030a3b33
commit e1c9c36184

View File

@ -34,7 +34,7 @@ int vlc_AMFCreateContext(struct vlc_amf_context *c)
c->Context = NULL;
AMFInit_Fn init = (AMFInit_Fn)GetProcAddress(hLib, AMF_INIT_FUNCTION_NAME);
res = init(c->Version, &c->pFactory); // use the highest possible value for that DLL
res = init(AMF_FULL_VERSION, &c->pFactory);
if (unlikely(res != AMF_OK))
goto error;