mirror of
https://github.com/videolan/vlc.git
synced 2024-11-27 03:47:46 +08:00
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:
parent
3d030a3b33
commit
e1c9c36184
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user