hw/amf: let the AMF system know what version was used to compile
authorSteve Lhomme <robux4@ycbcr.xyz>
Wed, 25 Sep 2024 09:37:02 +0000 (11:37 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
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

modules/hw/amf/amf_helper.c

index f0f6eaece4148d04346b4981f43125f973c7acf2..50f66b628cb2840d4cbfa39ee0d00898ebe1b459 100644 (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;