From 22a22d069bb03ae148a917b116b75bedebc897e7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 1 Mar 2009 14:42:39 +0100 Subject: [PATCH] fecdec.c: Don't warn about incomplete slices at close time. Move that warning to free_oldest_group(). --- fecdec_filter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.39.5