diff options
-rw-r--r-- | decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,8 +41,8 @@ const struct decoder_plugin *decoder_find(const gchar *filename) { for(int i = 0; decoder_plugins[i]; i++) { const struct decoder_plugin *plugin = decoder_plugins[i]; - for(int j = 0; plugin[i].extensions[j]; j++) { - if(g_strcmp0(plugin[i].extensions[j], ext) == 0) { + for(int j = 0; plugin->extensions[j]; j++) { + if(g_strcmp0(plugin->extensions[j], ext) == 0) { return plugin; } } |