summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-10 14:37:22 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-10 14:37:22 +0100
commit00fe26ba32397170225a1346c77c2b24ce6b49d5 (patch)
tree4861c0deff0385dee874d6937d2b78a7bb2f3360
parent84221d69f0bab92d578d50d1fdd8352be5a59019 (diff)
downloadlibuca-00fe26ba32397170225a1346c77c2b24ce6b49d5.tar.gz
libuca-00fe26ba32397170225a1346c77c2b24ce6b49d5.tar.bz2
libuca-00fe26ba32397170225a1346c77c2b24ce6b49d5.tar.xz
libuca-00fe26ba32397170225a1346c77c2b24ce6b49d5.zip
Use platform check to find correct plugin
-rw-r--r--src/uca-plugin-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uca-plugin-manager.c b/src/uca-plugin-manager.c
index 4961577..dc69227 100644
--- a/src/uca-plugin-manager.c
+++ b/src/uca-plugin-manager.c
@@ -196,7 +196,11 @@ find_camera_module_path (GList *search_paths, const gchar *name)
gchar *modname;
GList *paths;
+#ifdef _WIN32
+ modname = g_strdup_printf ("libuca%s.dll", name);
+#else
modname = g_strdup_printf ("libuca%s.so", name);
+#endif
paths = scan_search_paths (search_paths);
for (GList *it = g_list_first (paths); it != NULL; it = g_list_next (it)) {