summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-02-14 10:10:39 +0200
committerSebastian Dröge <sebastian@centricular.com>2018-02-14 10:10:39 +0200
commit3517f37b654306959446faa31db1cd2aa2ea7a46 (patch)
treec5d2bb2fba2140e457ee5188fed26a7a0dcb955d
parent2dd3bb0cb78634c35748643bf99529d867fa56ee (diff)
pluginloader: Print Python library path that is tried to be loaded
-rw-r--r--plugin/gstpythonplugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c
index d695a45..c5745de 100644
--- a/plugin/gstpythonplugin.c
+++ b/plugin/gstpythonplugin.c
@@ -229,10 +229,10 @@ plugin_init (GstPlugin * plugin)
"_Py_NoneStruct", &has_python) && has_python) {
GST_LOG ("libpython is already loaded");
} else {
- GST_LOG ("loading libpython");
- libpython =
- g_module_open (PY_LIB_LOC "/libpython" PYTHON_VERSION PY_ABI_FLAGS
- "." PY_LIB_SUFFIX, 0);
+ const gchar *libpython_path =
+ PY_LIB_LOC "/libpython" PYTHON_VERSION PY_ABI_FLAGS "." PY_LIB_SUFFIX;
+ GST_LOG ("loading libpython from '%s'", libpython_path);
+ libpython = g_module_open (libpython_path, 0);
if (!libpython) {
g_critical ("Couldn't g_module_open libpython. Reason: %s",
g_module_error ());