From: Steve Lhomme Date: Wed, 25 Sep 2024 09:37:02 +0000 (+0200) Subject: hw/amf: let the AMF system know what version was used to compile X-Git-Tag: archive/raspbian/3.0.21-7+rpi1^2~62 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d32eb7d9375f67b295eec5e679185df8cbca1899;p=vlc.git 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. (cherry picked from commit e1c9c361849e6042185d123ab559d14fa7d7e8e3) Gbp-Pq: Name 0064-hw-amf-let-the-AMF-system-know-what-version-was-used.patch --- diff --git a/modules/hw/amf/amf_helper.c b/modules/hw/amf/amf_helper.c index f0f6eaec..50f66b62 100644 --- a/modules/hw/amf/amf_helper.c +++ b/modules/hw/amf/amf_helper.c @@ -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;