audiod: fix nasty thinko
authorAndre <maan@p133.(none)>
Sun, 28 May 2006 23:19:20 +0000 (01:19 +0200)
committerAndre <maan@p133.(none)>
Sun, 28 May 2006 23:19:20 +0000 (01:19 +0200)
"ret" was used where "writer_num" is correct. This makes the "-w" option
of para_audiod work again. Fix another typo too.

audiod.c

index d788413..c2abfd5 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -693,7 +693,7 @@ static void open_writer(int slot_num)
        for (i = 0; i < a->num_writers; i++) {
                s->wng->writer_nodes[i].conf = a->writer_conf[i];
                s->wng->writer_nodes[i].writer = a->writers[i];
-               sprintf(s->wng->writer_nodes[i].task.status, "writer_ node");
+               sprintf(s->wng->writer_nodes[i].task.status, "writer_node");
        }
        ret = wng_open(s->wng);
        s->wstime = *now;
@@ -1016,7 +1016,7 @@ static int init_writers(void)
                        ret = writer_num;
                        goto out;
                }
-               a->writers[nw] = &writers[ret];
+               a->writers[nw] = &writers[writer_num];
                a->writer_conf[nw] = wconf;
                PARA_INFO_LOG("%s writer #%d: %s\n", audio_formats[ret],
                        nw, writer_names[writer_num]);