X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=oss_write.c;h=77fe2a51314e1268fdfcc3b5b1b2db68ac816788;hb=0879c9de4eaf8c78131c243d8e9fec013df0d14a;hp=33cf8c3cf1d56b3b0e851e1157279e5351529d3f;hpb=c5056b00502d27e602cfcd716f92e5f85f97b470;p=paraslash.git diff --git a/oss_write.c b/oss_write.c index 33cf8c3c..77fe2a51 100644 --- a/oss_write.c +++ b/oss_write.c @@ -44,9 +44,9 @@ static int get_oss_format(enum sample_format sf) } } -static void oss_pre_select(struct sched *s, struct task *t) +static void oss_pre_select(struct sched *s, void *context) { - struct writer_node *wn = task_context(t); + struct writer_node *wn = context; struct private_oss_write_data *powd = wn->private_data; int ret = btr_node_status(wn->btrn, wn->min_iqs, BTR_NT_LEAF); @@ -157,17 +157,16 @@ err_free: return ret; } -static int oss_post_select(__a_unused struct sched *s, - struct task *t) +static int oss_post_select(__a_unused struct sched *s, void *context) { - struct writer_node *wn = task_context(t); + struct writer_node *wn = context; struct private_oss_write_data *powd = wn->private_data; struct btr_node *btrn = wn->btrn; size_t frames, bytes; int ret; char *data; - ret = task_get_notification(t); + ret = task_get_notification(wn->task); if (ret < 0) goto out; ret = btr_node_status(btrn, wn->min_iqs, BTR_NT_LEAF);