decoder: make the suffixes and mime_types arrays really const

The strings were constant, but the pointers weren't.  C syntax is
somewhat tricky..
This commit is contained in:
Max Kellermann
2008-11-01 14:55:23 +01:00
parent 0b614fbaae
commit 4c1b96c307
11 changed files with 41 additions and 32 deletions

View File

@@ -337,11 +337,13 @@ fail:
return ret;
}
static const char *oggflac_Suffixes[] = { "ogg", "oga",NULL };
static const char *oggflac_mime_types[] = { "audio/x-flac+ogg",
"application/ogg",
"application/x-ogg",
NULL };
static const char *const oggflac_Suffixes[] = { "ogg", "oga", NULL };
static const char *const oggflac_mime_types[] = {
"audio/x-flac+ogg",
"application/ogg",
"application/x-ogg",
NULL
};
const struct decoder_plugin oggflacPlugin = {
.name = "oggflac",