summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-12-15 20:49:57 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-12-15 20:49:57 +0100
commit61c2b173c6ff0fa26e58c97a142bc7de198fa8a7 (patch)
treec491769de32b6621251235452e3a29c72229e09b
parent431ea2c697b92c622bca4a1f3d0cadfebbb88d9a (diff)
mpegtsdemux: Mark array static const and use G_N_ELEMENTS instead of sizeof
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index 18e1f6b96..b0c872e6b 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -948,8 +948,9 @@ gst_mpegts_demux_send_tags_for_stream (GstMpegTSDemux * demux,
GstTagList *list = NULL;
if (stream->ES_info) {
- guint8 lang_descs[] = { DESC_ISO_639_LANGUAGE, DESC_DVB_SUBTITLING };
- for (gint i = 0; i < sizeof (lang_descs); i++) {
+ static const guint8 lang_descs[] =
+ { DESC_ISO_639_LANGUAGE, DESC_DVB_SUBTITLING };
+ for (gint 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) {