From 4dc9b9f91af3e7fa5d00bef0d26d6a7bf11860cb Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 31 Mar 2013 13:15:41 +0000 Subject: [PATCH] fecdec: Switch to the alternative post select method. --- fecdec_filter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fecdec_filter.c b/fecdec_filter.c index d5a708cf..c65ff89d 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -436,7 +436,7 @@ static void fecdec_close(struct filter_node *fn) fn->private_data = NULL; } -static void fecdec_post_select(__a_unused struct sched *s, struct task *t) +static int fecdec_post_select(__a_unused struct sched *s, struct task *t) { struct filter_node *fn = container_of(t, struct filter_node, task); struct btr_node *btrn = fn->btrn; @@ -468,9 +468,9 @@ next_buffer: btr_consume(btrn, FEC_HEADER_SIZE + h.slice_bytes); goto next_buffer; out: - t->error = ret; if (ret < 0) btr_remove_node(&fn->btrn); + return ret; } static void fecdec_open(struct filter_node *fn) @@ -491,5 +491,6 @@ void fecdec_filter_init(struct filter *f) f->close = fecdec_close; f->open = fecdec_open; f->pre_select = generic_filter_pre_select; - f->post_select = fecdec_post_select; + f->new_post_select = fecdec_post_select; + f->post_select = NULL; } -- 2.39.5