X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=resample_filter.c;h=e34af83992526c23b73f24c03c92fde88a3a9bd0;hb=74e29e3e9f53baa879bb2f6d7aaf7448f36686a1;hp=2caa1e21395a7a77909d0284f6e44e3013640857;hpb=72e9bdf7c5c09ca4c20cad56c68a9a155cceff43;p=paraslash.git diff --git a/resample_filter.c b/resample_filter.c index 2caa1e21..e34af839 100644 --- a/resample_filter.c +++ b/resample_filter.c @@ -67,7 +67,7 @@ static void resample_open(struct filter_node *fn) static void resample_pre_select(struct sched *s, struct task *t) { - struct filter_node *fn = container_of(t, struct filter_node, task); + struct filter_node *fn = task_context(t); struct resample_context *ctx = fn->private_data; int ret = btr_node_status(fn->btrn, fn->min_iqs, BTR_NT_INTERNAL); @@ -205,7 +205,7 @@ static int resample_frames(int16_t *in, size_t num_frames, bool have_more, static int resample_post_select(__a_unused struct sched *s, struct task *t) { int ret; - struct filter_node *fn = container_of(t, struct filter_node, task); + struct filter_node *fn = task_context(t); struct resample_context *ctx = fn->private_data; struct resample_filter_args_info *conf = fn->conf; struct btr_node *btrn = fn->btrn;