Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 0284a5f

Browse files
committed
Changed run-time dependency from libva.so.1 to libva.so
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
1 parent 6196bdd commit 0284a5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/src/vaapi_utils.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ namespace MfxLoader
3838
SimpleLoader::SimpleLoader(const char * name)
3939
{
4040
so_handle = dlopen(name, RTLD_GLOBAL | RTLD_NOW);
41+
if (!so_handle)
42+
throw std::runtime_error("Can't find library");
4143
}
4244

4345
void * SimpleLoader::GetFunction(const char * name)
@@ -65,7 +67,7 @@ SimpleLoader::~SimpleLoader()
6567

6668
#if defined(LIBVA_SUPPORT)
6769
VA_Proxy::VA_Proxy()
68-
: lib("libva.so.1")
70+
: lib("libva.so")
6971
, SIMPLE_LOADER_FUNCTION(vaInitialize)
7072
, SIMPLE_LOADER_FUNCTION(vaTerminate)
7173
, SIMPLE_LOADER_FUNCTION(vaCreateSurfaces)

0 commit comments

Comments
 (0)