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:
parent
e5a98cf9d8
commit
7b9045d846
@ -94,7 +94,7 @@ gst_cuda_load_library (void)
|
|||||||
|
|
||||||
module = g_module_open (filename, G_MODULE_BIND_LAZY);
|
module = g_module_open (filename, G_MODULE_BIND_LAZY);
|
||||||
if (module == NULL) {
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ gst_cuvid_load_library (void)
|
|||||||
|
|
||||||
module = g_module_open (filename, G_MODULE_BIND_LAZY);
|
module = g_module_open (filename, G_MODULE_BIND_LAZY);
|
||||||
if (module == NULL) {
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -356,7 +356,8 @@ load_nvenc_library (void)
|
|||||||
|
|
||||||
module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
|
module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
|
||||||
if (module == NULL) {
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user