From 0b614fbaae9089d6d1ce981735a51f2a5b3cbf65 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Nov 2008 14:54:09 +0100 Subject: decoder: make all decoder_plugin structs const All decoder_plugin structs are initialized at compile time, and must never change. --- src/decoder/flac_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder/flac_plugin.c') diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c index 0c4869428..8b49ec3e5 100644 --- a/src/decoder/flac_plugin.c +++ b/src/decoder/flac_plugin.c @@ -435,7 +435,7 @@ static const char *oggflac_mime_types[] = { "audio/x-flac+ogg", "application/x-ogg", NULL }; -struct decoder_plugin oggflacPlugin = { +const struct decoder_plugin oggflacPlugin = { .name = "oggflac", .try_decode = oggflac_try_decode, .stream_decode = oggflac_decode, @@ -452,7 +452,7 @@ static const char *flac_mime_types[] = { "audio/x-flac", "application/x-flac", NULL }; -struct decoder_plugin flacPlugin = { +const struct decoder_plugin flacPlugin = { .name = "flac", .stream_decode = flac_decode, .tag_dup = flacTagDup, -- cgit v1.2.3