diff options
author | Max Kellermann <max@duempel.org> | 2008-11-01 14:54:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-01 14:54:09 +0100 |
commit | 0b614fbaae9089d6d1ce981735a51f2a5b3cbf65 (patch) | |
tree | bc1f7fc067f7f794b34dfed31083fd9eb13dcd19 /src/decoder/mp3_plugin.c | |
parent | 1a4a3e1f1f09ade38095757952bbf732ec275fe8 (diff) | |
download | mpd-0b614fbaae9089d6d1ce981735a51f2a5b3cbf65.tar.gz mpd-0b614fbaae9089d6d1ce981735a51f2a5b3cbf65.tar.xz mpd-0b614fbaae9089d6d1ce981735a51f2a5b3cbf65.zip |
decoder: make all decoder_plugin structs const
All decoder_plugin structs are initialized at compile time, and must
never change.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/mp3_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c index fe15568f1..1dc47b457 100644 --- a/src/decoder/mp3_plugin.c +++ b/src/decoder/mp3_plugin.c @@ -1146,7 +1146,7 @@ static struct tag *mp3_tag_dup(const char *file) static const char *mp3_suffixes[] = { "mp3", "mp2", NULL }; static const char *mp3_mime_types[] = { "audio/mpeg", NULL }; -struct decoder_plugin mp3Plugin = { +const struct decoder_plugin mp3Plugin = { .name = "mp3", .init = mp3_plugin_init, .stream_decode = mp3_decode, |