diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2005-04-13 19:07:17 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2005-04-13 19:07:17 +0000 |
commit | 1ecfe4939b3e55c75c5b46df3c7f200179ef227b (patch) | |
tree | 1081bcc6cf71096d8bee33218825469cbe548fec /src | |
parent | dc1499eb8209597b5740b2137e4d1efd736046e9 (diff) | |
download | xine-lib-1ecfe4939b3e55c75c5b46df3c7f200179ef227b.tar.gz xine-lib-1ecfe4939b3e55c75c5b46df3c7f200179ef227b.tar.bz2 |
**BUGFIX**
was parsing the wrong description array.
CVS patchset: 7457
CVS date: 2005/04/13 19:07:17
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/load_plugins.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 9c2b24717..731828d78 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: load_plugins.c,v 1.204 2005/04/10 16:23:05 tmattern Exp $ + * $Id: load_plugins.c,v 1.205 2005/04/13 19:07:17 f1rmb Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -2118,22 +2118,22 @@ const char *const *xine_list_post_plugins_typed(xine_t *xine, int type) { #define GET_PLUGIN_DESC(NAME,TYPE,CATITEM) \ const char *xine_get_##NAME##_plugin_description (xine_t *this, const char *plugin_id) { \ - plugin_catalog_t *catalog = this->plugin_catalog; \ + plugin_catalog_t *catalog = this->plugin_catalog; \ plugin_node_t *node = xine_list_first_content (catalog->plugin_lists[CATITEM - 1]); \ - while (node) { \ - if (!strcasecmp (node->info->id, plugin_id)) { \ - TYPE##_class_t *ic = (TYPE##_class_t *) node->plugin_class; \ - if (!ic) { \ - if (_load_plugin_class (this, node, NULL)) \ - ic = node->plugin_class; \ - else \ - return NULL; \ - } \ - return ic->get_description(ic); \ - } \ - node = xine_list_next_content (catalog->plugin_lists[CATITEM]); \ - } \ - return NULL; \ + while (node) { \ + if (!strcasecmp (node->info->id, plugin_id)) { \ + TYPE##_class_t *ic = (TYPE##_class_t *) node->plugin_class; \ + if (!ic) { \ + if (_load_plugin_class (this, node, NULL)) \ + ic = node->plugin_class; \ + else \ + return NULL; \ + } \ + return ic->get_description(ic); \ + } \ + node = xine_list_next_content (catalog->plugin_lists[CATITEM - 1]); \ + } \ + return NULL; \ } GET_PLUGIN_DESC (input, input, PLUGIN_INPUT) |