summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2014-05-28 16:18:13 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-05-28 16:18:13 +0200
commit14adeaa1c8d6710c6e061d780fb8dbde936df879 (patch)
tree9dd7b9203ea0fcb096a929ad4414d95958195a82 /tests
parent5d483a048258637fa51e10313fd72b17eb38da1c (diff)
downloadgstreamer-plugins-bad-14adeaa1c8d6710c6e061d780fb8dbde936df879.tar.gz
examples: Avoid shadowing main loop variable
We end up with interesting results otherwise :)
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/mpegts/ts-parser.c16
1 files changed, 8 insertions, 8 deletions
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);