From 3f165887f575829f90ca6c2aedd8d1d6063a94e7 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 29 May 2006 01:19:20 +0200 Subject: [PATCH] audiod: fix nasty thinko "ret" was used where "writer_num" is correct. This makes the "-w" option of para_audiod work again. Fix another typo too. --- audiod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audiod.c b/audiod.c index d7884133..c2abfd5a 100644 --- 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]); -- 2.39.2