changeset 29296:8fa7fb4ae9ef

Add const where appropriate, also gets rid of a compiler warning.
author reimar
date Mon, 01 Jun 2009 09:43:32 +0000
parents 25283dc2a86b
children dbc412fcde45
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Mon Jun 01 09:39:02 2009 +0000
+++ b/libmpdemux/demux_lavf.c	Mon Jun 01 09:43:32 2009 +0000
@@ -171,7 +171,7 @@
     return DEMUXER_TYPE_LAVF;
 }
 
-static const char *preferred_list[] = {
+static const char * const preferred_list[] = {
     "dxa",
     "wv",
     "nuv",
@@ -188,7 +188,7 @@
 
 static int lavf_check_preferred_file(demuxer_t *demuxer){
     if (lavf_check_file(demuxer)) {
-        char **p = preferred_list;
+        const char * const *p = preferred_list;
         lavf_priv_t *priv = demuxer->priv;
         while (*p) {
             if (strcmp(*p, priv->avif->name) == 0)