Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-03-24 04:32:04 +0300
committerXavier Claessens <xavier.claessens@collabora.com>2020-03-24 04:32:04 +0300
commit6e1758d5097e1a798a8c219b7ebf85422b165c6f (patch)
tree4673af3f1cadb2388c4fef57dbe7d6c24d05aacd /tests
parentb0f4831481831e471ca03085174b50ee92f7c6bd (diff)
Fix usage of C99
It's 2020, way too early for that, let's stick to C89 for now.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/rtpbin.c4
-rw-r--r--tests/check/elements/rtpsession.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/check/elements/rtpbin.c b/tests/check/elements/rtpbin.c
index 2a9266241..f3686a6c5 100644
--- a/tests/check/elements/rtpbin.c
+++ b/tests/check/elements/rtpbin.c
@@ -939,7 +939,9 @@ _pad_added (G_GNUC_UNUSED GstElement * rtpbin, GstPad * pad, GstHarness * h)
GST_START_TEST (test_quick_shutdown)
{
- for (guint r = 0; r < 1000; r++) {
+ guint r;
+
+ for (r = 0; r < 1000; r++) {
guint i;
GstHarness *h = gst_harness_new_with_padnames ("rtpbin",
"recv_rtp_sink_0", NULL);
diff --git a/tests/check/elements/rtpsession.c b/tests/check/elements/rtpsession.c
index 94ace8923..357e80f52 100644
--- a/tests/check/elements/rtpsession.c
+++ b/tests/check/elements/rtpsession.c
@@ -3568,7 +3568,9 @@ GST_START_TEST (test_twcc_send_and_recv)
for (frame = 0; frame < num_frames; frame++) {
GstBuffer *buf;
- for (guint slice = 0; slice < num_slices; slice++) {
+ guint slice;
+
+ for (slice = 0; slice < num_slices; slice++) {
GstFlowReturn res;
guint seq = frame * num_slices + slice;