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:
@@ -380,7 +380,7 @@ static const char *ffmpeg_Mimetypes[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
struct decoder_plugin ffmpegPlugin = {
|
||||
const struct decoder_plugin ffmpegPlugin = {
|
||||
.name = "ffmpeg",
|
||||
.init = ffmpeg_init,
|
||||
.try_decode = ffmpeg_try_decode,
|
||||
|
||||
Reference in New Issue
Block a user