s->fc = NULL;
if (!nf)
return;
+ PARA_INFO_LOG("opening %s filters\n", audio_formats[s->format]);
s->fc = para_calloc(sizeof(struct filter_chain));
INIT_LIST_HEAD(&s->fc->filters);
s->fc->inbuf = s->receiver_node->buf;
}
}
-static void start_stream_writer(int slot_num, struct timeval *now)
+static void open_writer(int slot_num, struct timeval *now)
{
int ret, i;
struct slot_info *s = &slot[slot_num];
struct audio_format_info *a = &afi[s->format];
- PARA_INFO_LOG("opening %s filters\n", audio_formats[s->format]);
- open_filters(slot_num);
PARA_INFO_LOG("opening %s writers\n", audio_formats[s->format]);
if (!a->num_writers)
s->wng = setup_default_wng();
continue;
rn = slot[i].receiver_node;
if (rn && rn->loaded && !slot[i].wng) {
- PARA_INFO_LOG("no writer in slot %d\n", i);
- start_stream_writer(i, &s->now);
+ open_filters(i);
+ open_writer(i, &s->now);
}
}
}