* \return If not, return -E_NO_WAV_HEADER, otherwise, return zero. If
* there is less than WAV_HEADER_LEN bytes awailable, return one.
*/
-static void check_wav_pre_select(struct sched *s, struct task *t)
+static void check_wav_pre_select(__a_unused struct sched *s, struct task *t)
{
struct check_wav_task *cwt = t->private_data;
unsigned char *a;
return NULL;
}
+static void wng_event_handler(struct task *t)
+{
+ struct writer_node_group *g = t->private_data;
+
+ PARA_INFO_LOG("%s\n", PARA_STRERROR(-t->ret));
+ unregister_task(t);
+ wng_close(g);
+ wng_destroy(g);
+}
+
+
static void idt_event_handler(struct task *t)
{
int ret;
wng->buf = sit.buf;
wng->loaded = &sit.loaded;
wng->input_eof = &sit.eof;
+ wng->task.event_handler = wng_event_handler;
ret = wng_open(wng);
if (ret < 0) {
PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));