From 14adeaa1c8d6710c6e061d780fb8dbde936df879 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 28 May 2014 16:18:13 +0200 Subject: examples: Avoid shadowing main loop variable We end up with interesting results otherwise :) --- tests/examples/mpegts/ts-parser.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/examples') diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c index 1c3b8d16f..4db4f2cfa 100644 --- a/tests/examples/mpegts/ts-parser.c +++ b/tests/examples/mpegts/ts-parser.c @@ -486,11 +486,11 @@ dump_descriptors (GPtrArray * descriptors, guint spacing) guint8 type; guint16 composition; guint16 ancillary; - guint i; + guint j; - for (i = 0; - gst_mpegts_descriptor_parse_dvb_subtitling_idx (desc, i, &lang, - &type, &composition, &ancillary); i++) { + for (j = 0; + gst_mpegts_descriptor_parse_dvb_subtitling_idx (desc, j, &lang, + &type, &composition, &ancillary); j++) { g_printf ("%*s Subtitling, language_code:%s\n", spacing, "", lang); g_printf ("%*s type : %u\n", spacing, "", type); g_printf ("%*s composition page id : %u\n", spacing, "", @@ -505,11 +505,11 @@ dump_descriptors (GPtrArray * descriptors, guint spacing) GstMpegTsDVBTeletextType type; gchar lang[4]; guint8 magazine, page_number; - guint i; + guint j; - for (i = 0; - gst_mpegts_descriptor_parse_dvb_teletext_idx (desc, i, &lang, &type, - &magazine, &page_number); i++) { + for (j = 0; + gst_mpegts_descriptor_parse_dvb_teletext_idx (desc, j, &lang, &type, + &magazine, &page_number); j++) { g_printf ("%*s Teletext, type:0x%02x (%s)\n", spacing, "", type, enum_name (GST_TYPE_MPEG_TS_DVB_TELETEXT_TYPE, type)); g_printf ("%*s language : %s\n", spacing, "", lang); -- cgit v1.2.1