mpegdemux: Fix c99-ism

This commit is contained in:
David Schleef 2010-12-30 19:21:21 -08:00
parent 04c44d18c9
commit edd1f791ca

View file

@ -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) {