decoder: make all decoder_plugin structs const
All decoder_plugin structs are initialized at compile time, and must never change.
This commit is contained in:
@@ -135,7 +135,7 @@ static struct tag *audiofileTagDup(const char *file)
|
||||
|
||||
static const char *audiofileSuffixes[] = { "wav", "au", "aiff", "aif", NULL };
|
||||
|
||||
struct decoder_plugin audiofilePlugin = {
|
||||
const struct decoder_plugin audiofilePlugin = {
|
||||
.name = "audiofile",
|
||||
.file_decode = audiofile_decode,
|
||||
.tag_dup = audiofileTagDup,
|
||||
|
||||
Reference in New Issue
Block a user