diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-09-05 16:34:08 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-09-05 16:34:08 +0200 |
commit | b6567cbdf77f0ebf1790b1e7d800ad4df88253ca (patch) | |
tree | c3c8dc6bf3f1fb888fccdc200be5fe1e73d63e35 | |
parent | 2f39555d7bfbf367df75762e0a867c1d654171ea (diff) |
Fixed error in decoder_find().
-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; } } |