From c6f19511b514d4f4c8f142fb7bf6ce237eec9858 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 9 Jul 2018 06:40:29 +0530 Subject: [PATCH] closedcaption: Fix compilation on older compilers For when -std=c99 (or later) is not the default. --- ext/closedcaption/gstceaccoverlay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/closedcaption/gstceaccoverlay.c b/ext/closedcaption/gstceaccoverlay.c index 5747b9a..9f32898 100644 --- a/ext/closedcaption/gstceaccoverlay.c +++ b/ext/closedcaption/gstceaccoverlay.c @@ -1521,7 +1521,8 @@ gst_cea_cc_overlay_user_data_decode (GstCeaCcOverlay * overlay, case CCTYPE_608_CC2: if (cc_valid) { if (overlay->cea608_index[cc_type] <= DTVCC_LENGTH - 2) { - for (size_t j = 0; j < 2; ++j) { + size_t j; + for (j = 0; j < 2; ++j) { if ((cc_data[j] < ' ') || (cc_data[j] > '~')) { gst_cea_cc_overlay_process_packet (overlay, cc_type); } -- 2.7.4