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