]> code.delx.au - pulseaudio/blobdiff - src/daemon/ltdl-bind-now.c
sink-input, source-output: Remove redundant get_mute() functions
[pulseaudio] / src / daemon / ltdl-bind-now.c
index 2ba73ce72f5d6574c002d6552961ed0ec7d45d14..9c67a7d249f093cf33a41cc3bc611a4c32ca44f0 100644 (file)
@@ -36,8 +36,7 @@
 
 #include <ltdl.h>
 
-#include <pulse/i18n.h>
-
+#include <pulsecore/i18n.h>
 #include <pulsecore/macro.h>
 #include <pulsecore/log.h>
 
@@ -66,7 +65,7 @@
   relocations on any libraries that are already loaded into our
   process, i.e. because the pulseaudio binary links directly to
   them. To disable lazy relocations for those libraries it is possible
-  to set $LT_BIND_NOW before starting the pulsaudio binary.
+  to set $LT_BIND_NOW before starting the pulseaudio binary.
 */
 
 static lt_module bind_now_open(lt_user_data d, const char *fname, lt_dladvise advise) {
@@ -75,6 +74,7 @@ static lt_module bind_now_open(lt_user_data d, const char *fname, lt_dladvise ad
     pa_assert(fname);
 
     if (!(m = dlopen(fname, PA_BIND_NOW))) {
+        pa_log(_("Failed to open module %s: %s"), fname, dlerror());
         lt_dlseterror(LT_ERROR_CANNOT_OPEN);
         return NULL;
     }
@@ -86,7 +86,7 @@ static int bind_now_close(lt_user_data d, lt_module m) {
 
     pa_assert(m);
 
-    if (dlclose(m) != 0){
+    if (dlclose(m) != 0) {
         lt_dlseterror(LT_ERROR_CANNOT_CLOSE);
         return 1;
     }