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/mp4_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/mp4_plugin.c') diff --git a/src/decoder/mp4_plugin.c b/src/decoder/mp4_plugin.c index 8fe2b18f8..ae0fe49f9 100644 --- a/src/decoder/mp4_plugin.c +++ b/src/decoder/mp4_plugin.c @@ -413,7 +413,7 @@ static struct tag *mp4TagDup(const char *file) static const char *mp4_suffixes[] = { "m4a", "mp4", NULL }; static const char *mp4_mimeTypes[] = { "audio/mp4", "audio/m4a", NULL }; -struct decoder_plugin mp4Plugin = { +const struct decoder_plugin mp4Plugin = { .name = "mp4", .stream_decode = mp4_decode, .tag_dup = mp4TagDup, -- cgit v1.2.3