nvcodec: Change log level for g_module_open failure

Since we build nvcodec plugin without external CUDA dependency,
CUDA and en/decoder library loading failure can be natural behavior.

Emit error only when the module was opend but required symbols are missing.
This commit is contained in:
Seungha Yang 2019-07-24 13:06:16 +09:00 committed by Sebastian Dröge
parent e5a98cf9d8
commit 7b9045d846
3 changed files with 4 additions and 3 deletions

View file

@ -94,7 +94,7 @@ gst_cuda_load_library (void)
module = g_module_open (filename, G_MODULE_BIND_LAZY);
if (module == NULL) {
GST_ERROR ("Could not open library %s, %s", filename, g_module_error ());
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
return FALSE;
}

View file

@ -79,7 +79,7 @@ gst_cuvid_load_library (void)
module = g_module_open (filename, G_MODULE_BIND_LAZY);
if (module == NULL) {
GST_ERROR ("Could not open library %s, %s", filename, g_module_error ());
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
return FALSE;
}

View file

@ -356,7 +356,8 @@ load_nvenc_library (void)
module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
if (module == NULL) {
GST_ERROR ("%s", g_module_error ());
GST_WARNING ("Could not open library %s, %s",
NVENC_LIBRARY_NAME, g_module_error ());
return FALSE;
}