From 3af671425b0b7503e6af718e818040d6c6260d6a Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 5 Feb 2009 10:50:27 +0100 Subject: [PATCH] metadata test: Fix wrong looping variable. Test is now valid (but fails). The inner looping was using the outer looping variable. --- tests/check/pipelines/metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check/pipelines/metadata.c b/tests/check/pipelines/metadata.c index 4ca8179c53..9f5034e3fe 100644 --- a/tests/check/pipelines/metadata.c +++ b/tests/check/pipelines/metadata.c @@ -145,7 +145,7 @@ test_tags (const gchar * tag_str) name_sent = gst_structure_nth_field_name (sent_tags, i); value_sent = gst_structure_get_value (sent_tags, name_sent); found = FALSE; - for (j = 0; i < n_recv; j++) { + for (j = 0; j < n_recv; j++) { name_recv = gst_structure_nth_field_name (received_tags, j); if (!strcmp (name_sent, name_recv)) { value_recv = gst_structure_get_value (received_tags, name_recv);