mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
3 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue