From db7d1a7eeb9b4a981330b77c942966b09b05ef0d Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 29 May 2009 15:44:51 +0100 Subject: [PATCH] mpegtsdemux: Fix bogus uninitialised variable access Typo in the previous commit --- gst/mpegdemux/gstmpegtsdemux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c index de376f3ae2..b75bfc6dda 100644 --- a/gst/mpegdemux/gstmpegtsdemux.c +++ b/gst/mpegdemux/gstmpegtsdemux.c @@ -831,12 +831,11 @@ gst_mpegts_demux_send_tags_for_stream (GstMpegTSDemux * demux, if (stream->ES_info) { guint8 *iso639_languages = gst_mpeg_descriptor_find (stream->ES_info, DESC_ISO_639_LANGUAGE); - gint i; if (iso639_languages) { if (DESC_ISO_639_LANGUAGE_codes_n (iso639_languages)) { gchar lang_code[4]; gchar *language_n = (gchar *) - DESC_ISO_639_LANGUAGE_language_code_nth (iso639_languages, i); + DESC_ISO_639_LANGUAGE_language_code_nth (iso639_languages, 0); lang_code[0] = language_n[0]; lang_code[1] = language_n[1]; lang_code[2] = language_n[2];