]> git.tue.mpg.de Git - paraslash.git/commitdiff
fecdec: Fix warning message when freeing incomplete groups.
authorAndre Noll <maan@systemlinux.org>
Fri, 1 May 2009 11:35:54 +0000 (13:35 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 1 May 2009 11:35:54 +0000 (13:35 +0200)
This could lead to a segfault.

fecdec_filter.c

index bc5300627dbdfb7a1ab1bf37f0ac5aa681dbd4a2..817e4c66c7bc96a2e59b5b7230d8b490633dbbb6 100644 (file)
@@ -161,8 +161,8 @@ static struct fecdec_group *free_oldest_group(struct private_fecdec_data *pfd)
        }
        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);
+                       "(contains %d slices)\n", oldest->h.group_num,
+                       oldest->num_received_slices);
        clear_group(oldest);
        return oldest;
 }