diff options
author | Max Kellermann <max@duempel.org> | 2008-11-01 14:55:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-01 14:55:23 +0100 |
commit | 4c1b96c30721f78d9251a8074d4d516c37e755b9 (patch) | |
tree | c1473bea5ff2fb12560c22a2764189adba96b83b /src/decoder/mp4_plugin.c | |
parent | 0b614fbaae9089d6d1ce981735a51f2a5b3cbf65 (diff) | |
download | mpd-4c1b96c30721f78d9251a8074d4d516c37e755b9.tar.gz mpd-4c1b96c30721f78d9251a8074d4d516c37e755b9.tar.xz mpd-4c1b96c30721f78d9251a8074d4d516c37e755b9.zip |
decoder: make the suffixes and mime_types arrays really const
The strings were constant, but the pointers weren't. C syntax is
somewhat tricky..
Diffstat (limited to 'src/decoder/mp4_plugin.c')
-rw-r--r-- | src/decoder/mp4_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mp4_plugin.c b/src/decoder/mp4_plugin.c index ae0fe49f9..eeeac8177 100644 --- a/src/decoder/mp4_plugin.c +++ b/src/decoder/mp4_plugin.c @@ -410,8 +410,8 @@ static struct tag *mp4TagDup(const char *file) return ret; } -static const char *mp4_suffixes[] = { "m4a", "mp4", NULL }; -static const char *mp4_mimeTypes[] = { "audio/mp4", "audio/m4a", NULL }; +static const char *const mp4_suffixes[] = { "m4a", "mp4", NULL }; +static const char *const mp4_mimeTypes[] = { "audio/mp4", "audio/m4a", NULL }; const struct decoder_plugin mp4Plugin = { .name = "mp4", |