From b6567cbdf77f0ebf1790b1e7d800ad4df88253ca Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 5 Sep 2010 16:34:08 +0200 Subject: Fixed error in decoder_find(). --- decoder.c | 4 ++-- 1 file 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; } } -- cgit v1.2.3