]> code.delx.au - pulseaudio/blobdiff - src/modules/module-pipe-sink.c
introduce default channel map in addition to the default sample spec
[pulseaudio] / src / modules / module-pipe-sink.c
index 03e27170c2fd0c90a7efa9fc782762ae1d967195..f3b0e8b0e6297d819c737e60414931f7fd741015 100644 (file)
@@ -138,7 +138,9 @@ static int process_render(struct userdata *u) {
 
             if (errno == EINTR)
                 continue;
-            else if (errno != EAGAIN) {
+            else if (errno == EAGAIN)
+                return 0;
+            else {
                 pa_log("Failed to write data to FIFO: %s", pa_cstrerror(errno));
                 return -1;
             }
@@ -232,6 +234,7 @@ int pa__init(pa_module*m) {
     }
 
     ss = m->core->default_sample_spec;
+    map = m->core->default_channel_map;
     if (pa_modargs_get_sample_spec_and_channel_map(ma, &ss, &map, PA_CHANNEL_MAP_DEFAULT) < 0) {
         pa_log("Invalid sample format specification or channel map");
         goto fail;