aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/oggvorbis_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-01 14:55:23 +0100
committerMax Kellermann <max@duempel.org>2008-11-01 14:55:23 +0100
commit4c1b96c30721f78d9251a8074d4d516c37e755b9 (patch)
treec1473bea5ff2fb12560c22a2764189adba96b83b /src/decoder/oggvorbis_plugin.c
parent0b614fbaae9089d6d1ce981735a51f2a5b3cbf65 (diff)
downloadmpd-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 '')
-rw-r--r--src/decoder/oggvorbis_plugin.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c
index 4531aac40..14cb48278 100644
--- a/src/decoder/oggvorbis_plugin.c
+++ b/src/decoder/oggvorbis_plugin.c
@@ -368,11 +368,13 @@ oggvorbis_try_decode(struct input_stream *inStream)
return ogg_stream_type_detect(inStream) == VORBIS;
}
-static const char *oggvorbis_Suffixes[] = { "ogg","oga", NULL };
-static const char *oggvorbis_MimeTypes[] = { "application/ogg",
- "audio/x-vorbis+ogg",
- "application/x-ogg",
- NULL };
+static const char *const oggvorbis_Suffixes[] = { "ogg","oga", NULL };
+static const char *const oggvorbis_MimeTypes[] = {
+ "application/ogg",
+ "audio/x-vorbis+ogg",
+ "application/x-ogg",
+ NULL
+};
const struct decoder_plugin oggvorbisPlugin = {
.name = "oggvorbis",