Skip to content

Commit

Permalink
va/win32: Change default driver name to default driver filename
Browse files Browse the repository at this point in the history
As in Win LoadLibrary (aliased to dlopen) supports the file string
to have multiple semantics. I left only the vaon12_drv_video filename,
which will first still try to open .\vaon12_drv_video.dll and then
attempt again using the default Windows library search order.

From the LoadLibrary documentation:

- If no file name extension is specified in the lpFileName parameter,
  the default library extension .dll is appended.

- When no path is specified, the function searches for loaded modules
  whose base name matches the base name of the module to be loaded.
  If the name matches, the load succeeds. Otherwise, the function searches
  for the file. The first directory searched is the directory containing
  the image file used to create the calling process...

Signed-off-by: Sil Vilerino <[email protected]>
  • Loading branch information
sivileri committed Jun 9, 2023
1 parent afda003 commit e63b0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion va/win32/va_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* which will be selected when provided with an adapter LUID which
* does not have a registered VA driver
*/
const char VAAPI_DEFAULT_DRIVER_NAME[] = "vaon12";
const char VAAPI_DEFAULT_DRIVER_NAME[] = "vaon12_drv_video";

typedef struct _VADisplayContextWin32 {
LUID adapter_luid;
Expand Down

0 comments on commit e63b0ad

Please sign in to comment.