From: Andre Noll Date: Sun, 1 Mar 2009 13:42:39 +0000 (+0100) Subject: fecdec.c: Don't warn about incomplete slices at close time. X-Git-Tag: v0.3.4~57^2~8 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=22a22d069bb03ae148a917b116b75bedebc897e7;hp=eb51951a61a641ef0c403c3c6df560f29b8c5468 fecdec.c: Don't warn about incomplete slices at close time. Move that warning to free_oldest_group(). --- diff --git a/fecdec_filter.c b/fecdec_filter.c index 6b6716a1..8b326de5 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -92,10 +92,6 @@ static void clear_group(struct fecdec_group *fg) { int i; - if (!group_complete(fg) && !group_empty(fg)) - PARA_WARNING_LOG("Clearing incomplete group %d " - "(contains %d slices)\n", fg->h.group_num, - fg->num_received_slices); for (i = 0; i < fg->num_slices; i++) { free(fg->data[i]); fg->data[i] = NULL; @@ -155,6 +151,10 @@ static struct fecdec_group *free_oldest_group(struct private_fecdec_data *pfd) if (!oldest || oldest->h.group_num > fg->h.group_num) oldest = fg; } + if (!group_complete(oldest) && !group_empty(oldest)) + PARA_WARNING_LOG("Clearing incomplete group %d " + "(contains %d slices)\n", fg->h.group_num, + fg->num_received_slices); clear_group(oldest); return oldest; }