summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-09-05 16:34:08 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-09-05 16:34:08 +0200
commitb6567cbdf77f0ebf1790b1e7d800ad4df88253ca (patch)
treec3c8dc6bf3f1fb888fccdc200be5fe1e73d63e35
parent2f39555d7bfbf367df75762e0a867c1d654171ea (diff)
Fixed error in decoder_find().
-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;
}
}