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

@@ -586,8 +586,8 @@ static struct tag *aacTagDup(const char *file)
return ret;
}
static const char *aac_suffixes[] = { "aac", NULL };
static const char *aac_mimeTypes[] = { "audio/aac", "audio/aacp", NULL };
static const char *const aac_suffixes[] = { "aac", NULL };
static const char *const aac_mimeTypes[] = { "audio/aac", "audio/aacp", NULL };
const struct decoder_plugin aacPlugin = {
.name = "aac",