From 57e1e5921e4735256ec751c44bfb7490f90d21a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 9 Jan 2017 18:58:42 +0000 Subject: [PATCH] tests: audiodecoder: fix compiler warnings due to c99-ism MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit audiodecoder.c:160:5: error: ‘for’ loop initial declarations are only allowed in C99 mode --- tests/check/libs/audiodecoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/check/libs/audiodecoder.c b/tests/check/libs/audiodecoder.c index cba7a35a37..e1f090a537 100644 --- a/tests/check/libs/audiodecoder.c +++ b/tests/check/libs/audiodecoder.c @@ -157,7 +157,9 @@ gst_audio_decoder_tester_handle_frame (GstAudioDecoder * dec, if ((tester->delay_decoding && tester->prev_buf != NULL) || !tester->delay_decoding) { gsize buf_num = tester->delay_decoding ? 2 : 1; - for (gint i = 0; i != buf_num; ++i) { + gint i; + + for (i = 0; i != buf_num; ++i) { GstBuffer *cur_buf = buf_num == 1 || i != 0 ? buffer : tester->prev_buf; gst_buffer_map (cur_buf, &map, GST_MAP_READ);