From a9269d37c5204a6f7426b78037b1ca1e4b2dc971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 13 Dec 2016 22:39:01 +0200 Subject: [PATCH] gst: Don't declare variables inside the for loop header This is a C99 feature. --- tests/check/elements/compositor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/check/elements/compositor.c b/tests/check/elements/compositor.c index cfd9ceaefb..97211493d9 100644 --- a/tests/check/elements/compositor.c +++ b/tests/check/elements/compositor.c @@ -443,8 +443,9 @@ static void add_interlaced_mode_to_caps (GstCaps * caps, const gchar * mode) { GstStructure *s; + gint i; - for (gint i = 0; i < gst_caps_get_size (caps); i++) { + for (i = 0; i < gst_caps_get_size (caps); i++) { s = gst_caps_get_structure (caps, i); gst_structure_set (s, "interlace-mode", G_TYPE_STRING, mode, NULL); }