]> code.delx.au - pulseaudio/blobdiff - src/modules/module-alsa-source.c
* split pa_cstrerror() into its own file polypcore/core-error.[ch]
[pulseaudio] / src / modules / module-alsa-source.c
index b9d1ff87c1689a2fc8e0954e5a9d52b9f1a105d9..414efda882abd8922437d5483e72c9a958c83a9f 100644 (file)
 
 #include <polyp/xmalloc.h>
 
+#include <polypcore/core-error.h>
 #include <polypcore/core.h>
 #include <polypcore/module.h>
 #include <polypcore/memchunk.h>
 #include <polypcore/sink.h>
 #include <polypcore/modargs.h>
-#include <polypcore/util.h>
+#include <polypcore/core-util.h>
 #include <polypcore/sample-util.h>
 #include <polypcore/log.h>
 
@@ -134,7 +135,7 @@ static void do_read(struct userdata *u) {
                 continue;
             }
 
-            pa_log(__FILE__": snd_pcm_readi() failed: %s", strerror(-frames));
+            pa_log(__FILE__": snd_pcm_readi() failed: %s", pa_cstrerror(-frames));
             return;
         }