summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-05-29 15:44:51 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-05-29 15:44:51 +0100
commitdb7d1a7eeb9b4a981330b77c942966b09b05ef0d (patch)
treeeec0a18819deebd2def88a96e68c479fcd8eda63 /gst
parentf3a9f525366cef7f81ea7763c3051a1a0a34126c (diff)
downloadgst-plugins-bad-db7d1a7eeb9b4a981330b77c942966b09b05ef0d.tar.gz
gst-plugins-bad-db7d1a7eeb9b4a981330b77c942966b09b05ef0d.tar.bz2
gst-plugins-bad-db7d1a7eeb9b4a981330b77c942966b09b05ef0d.zip
mpegtsdemux: Fix bogus uninitialised variable access
Typo in the previous commit
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index de376f3a..b75bfc6d 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];