summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder.c b/decoder.c
index dbb373b..a31d624 100644
--- a/decoder.c
+++ b/decoder.c
@@ -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;
}
}