[MPlayer-cvslog] r29338 - trunk/libmpdemux/demux_lavf.c

reimar subversion at mplayerhq.hu
Mon Jun 1 11:43:32 CEST 2009


Author: reimar
Date: Mon Jun  1 11:43:32 2009
New Revision: 29338

Log:
Add const where appropriate, also gets rid of a compiler warning.

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Mon Jun  1 11:39:02 2009	(r29337)
+++ trunk/libmpdemux/demux_lavf.c	Mon Jun  1 11:43:32 2009	(r29338)
@@ -171,7 +171,7 @@ static int lavf_check_file(demuxer_t *de
     return DEMUXER_TYPE_LAVF;
 }
 
-static const char *preferred_list[] = {
+static const char * const preferred_list[] = {
     "dxa",
     "wv",
     "nuv",
@@ -188,7 +188,7 @@ static const char *preferred_list[] = {
 
 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)


More information about the MPlayer-cvslog mailing list