diff options
-rw-r--r-- | src/decoder_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_list.c b/src/decoder_list.c index f2f245617..68c053c2a 100644 --- a/src/decoder_list.c +++ b/src/decoder_list.c @@ -165,7 +165,7 @@ void decoder_plugin_init_all(void) { for (unsigned i = 0; i < num_decoder_plugins; ++i) { const struct decoder_plugin *plugin = decoder_plugins[i]; - if (plugin->init != NULL && decoder_plugins[i]->init()) + if (plugin->init == NULL || decoder_plugins[i]->init()) decoder_plugins_enabled[i] = true; } } |