From: Andre Noll Date: Tue, 12 Jan 2010 03:33:23 +0000 (+0100) Subject: Fecdec: Kill non-btr code. X-Git-Tag: v0.4.2~148 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=7dfaab7230721cdb6c38b04552ec33c1ce712c34;p=paraslash.git Fecdec: Kill non-btr code. --- diff --git a/fecdec_filter.c b/fecdec_filter.c index 25533b24..bc0eee92 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -404,7 +404,6 @@ static int dispatch_slice(char *buf, size_t len, struct fec_header *h, int ret, k, n; struct private_fecdec_data *pfd = fn->private_data; - PARA_CRIT_LOG("sb: %d, len: %d\n", h->slice_bytes, len); if (h->slice_bytes > len) { /* can not use the thing, try to read more */ fn->min_iqs = h->slice_bytes + FEC_HEADER_SIZE; return 0; @@ -449,26 +448,6 @@ decode: return 1; } -static ssize_t fecdec(char *buf, size_t len, struct filter_node *fn) -{ - int ret; - struct fec_header h; - - ret = read_fec_header(buf, len, &h); - if (ret <= 0) - return ret; - if (!h.slice_bytes) - return -E_BAD_SLICE_SIZE; - if (h.slice_num > h.slices_per_group) - return -E_BAD_SLICE_NUM; - ret = dispatch_slice(buf + FEC_HEADER_SIZE, len - FEC_HEADER_SIZE, - &h, fn); - //PARA_INFO_LOG("ret: %d, len: %d, slice_bytes: %d\n", ret, len, h.slice_bytes); - if (ret <= 0) - return ret; - return FEC_HEADER_SIZE + h.slice_bytes; -} - static void fecdec_close(struct filter_node *fn) { struct private_fecdec_data *pfd = fn->private_data; @@ -539,7 +518,6 @@ static void fecdec_open(struct filter_node *fn) */ void fecdec_filter_init(struct filter *f) { - f->convert = fecdec; f->close = fecdec_close; f->open = fecdec_open; f->pre_select = generic_filter_pre_select;