diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-03-20 11:36:32 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-03-20 12:08:28 +0200 |
commit | ed2ccb1a60f6756b5c59df40460dc2dd0b7f7f37 (patch) | |
tree | 3c79ee7cb770c2ee04e432a8dd645858ccdf31ca /tests/check/elements/rtpred.c | |
parent | 7f9d468c29fdcaf621e0c66063c41290dce35695 (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.c | 4 |
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_); \ |