summaryrefslogtreecommitdiff
authorDavid Schleef <ds@schleef.org>2010-12-31 03:21:21 (GMT)
committer David Schleef <ds@schleef.org>2010-12-31 03:25:46 (GMT)
commitedd1f791ca4e4526e10c6458d4d19a1fc3173a89 (patch) (side-by-side diff)
tree93fc1d6e654938909f7ec9631039621c4d7a031c
parent04c44d18c9b480ad8cffff2dbe1f78ad3d478b96 (diff)
downloadgst-plugins-bad-edd1f791ca4e4526e10c6458d4d19a1fc3173a89.zip
gst-plugins-bad-edd1f791ca4e4526e10c6458d4d19a1fc3173a89.tar.gz
mpegdemux: Fix c99-ism
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index 166a246..4f116e4 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -946,11 +946,12 @@ gst_mpegts_demux_send_tags_for_stream (GstMpegTSDemux * demux,
GstMpegTSStream * stream)
{
GstTagList *list = NULL;
+ gint i;
if (stream->ES_info) {
static const guint8 lang_descs[] =
{ DESC_ISO_639_LANGUAGE, DESC_DVB_SUBTITLING };
- for (gint i = 0; i < G_N_ELEMENTS (lang_descs); i++) {
+ for (i = 0; i < G_N_ELEMENTS (lang_descs); i++) {
guint8 *iso639_languages =
gst_mpeg_descriptor_find (stream->ES_info, lang_descs[i]);
if (iso639_languages) {