# HG changeset patch # User reimar # Date 1243849412 0 # Node ID 8fa7fb4ae9efceffc2b24faefad16ae6d5995de9 # Parent 25283dc2a86b869d2edce6df63363f01d5a6ab1a Add const where appropriate, also gets rid of a compiler warning. diff -r 25283dc2a86b -r 8fa7fb4ae9ef libmpdemux/demux_lavf.c --- 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)