From e7efab1b15c54d9729c7911aa3c170bc167eb5d6 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Tue, 1 Jun 2010 20:15:43 +1200 Subject: [PATCH] line shuffle was not necessarily shuffling last line --- edges.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edges.c b/edges.c index 7651849..d1cdac0 100644 --- a/edges.c +++ b/edges.c @@ -989,7 +989,7 @@ init_find_edges(GstSparrow *sparrow){ GST_DEBUG("allocated %d lines, status %d\n", n_lines, line - fl->h_lines); /*now shuffle */ - for (i = 0; i < n_lines - 1; i++){ + for (i = 0; i < n_lines; i++){ int j = RANDINT(sparrow, 0, n_lines); sparrow_line_t *tmp = fl->shuffled_lines[j]; fl->shuffled_lines[j] = fl->shuffled_lines[i]; -- 2.11.4.GIT