/*
- * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2013 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
check_wav_pre_select(s, wt->cwc);
}
-static void write_post_select(__a_unused struct sched *s, struct task *t)
+static int write_post_select(__a_unused struct sched *s, struct task *t)
{
struct write_task *wt = container_of(t, struct write_task, task);
- t->error = check_wav_post_select(wt->cwc);
+ return check_wav_post_select(wt->cwc);
}
static int setup_and_schedule(void)
register_task(&s, &sit.task);
COPY_WAV_PARMS(&wp, &conf);
- wt.cwc = check_wav_init(sit.btrn, &wp, &cw_btrn);
+ wt.cwc = check_wav_init(sit.btrn, NULL, &wp, &cw_btrn);
register_task(&s, &wt.task);
if (!conf.writer_given) {
wns = para_calloc(sizeof(*wns));