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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user