summaryrefslogtreecommitdiff
path: root/tests/check/elements/rtpred.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-03-20 11:36:32 +0200
committerSebastian Dröge <sebastian@centricular.com>2018-03-20 12:08:28 +0200
commited2ccb1a60f6756b5c59df40460dc2dd0b7f7f37 (patch)
tree3c79ee7cb770c2ee04e432a8dd645858ccdf31ca /tests/check/elements/rtpred.c
parent7f9d468c29fdcaf621e0c66063c41290dce35695 (diff)
rtp: Fix compilation with non-C99 compilers
By moving variable declarations out of loop headers.
Diffstat (limited to 'tests/check/elements/rtpred.c')
-rw-r--r--tests/check/elements/rtpred.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check/elements/rtpred.c b/tests/check/elements/rtpred.c
index 6db4c383a..ff4838901 100644
--- a/tests/check/elements/rtpred.c
+++ b/tests/check/elements/rtpred.c
@@ -49,10 +49,10 @@
#define _check_caps(_h_, _nth_, _expected_payload_) \
G_STMT_START { \
GstEvent *_ev_; \
- gint _pt_ = -1; \
+ gint _pt_ = -1, _i_; \
GstCaps *_caps_ = NULL; \
\
- for (gint _i_ = 0; _i_ < _nth_; ++_i_) \
+ for (_i_ = 0; _i_ < _nth_; ++_i_) \
gst_event_unref (gst_harness_pull_event (_h_)); \
\
_ev_ = gst_harness_pull_event (_h_); \