From: <thi...@gm...> - 2007-04-12 17:26:03
|
# HG changeset patch # User Thibaut Mattern <thi...@gm...> # Date 1175793288 -7200 # Node ID 4645a7180b672589c8e0b3dae8fd0763daa76dc0 # Parent 49a9419bd3b0a623014ba3ac479b854035096186 Filled the config entry list when the callback is called. diff -r 4645a7180b672589c8e0b3dae8fd0763daa76dc0 -r 49a9419bd3b0a623014ba3ac479b854035096186 src/xine-engine/load_plugins.c --- a/src/xine-engine/load_plugins.c Thu Apr 05 19:14:48 2007 +0200 +++ b/src/xine-engine/load_plugins.c Thu Apr 05 19:00:10 2007 +0200 @@ -704,6 +704,12 @@ static void _new_entry_cb (void *user_da /* printf("_new_entry_cb: key %s, plugin id: %s\n", entry->key, node->info->id); */ + if (!node->config_entry_list) { + node->config_entry_list = xine_list_new(); + } + + xine_list_push_back(node->config_entry_list, (void *)entry->key); + } static int _load_plugin_class(xine_t *this, @@ -2603,6 +2609,10 @@ static void dispose_plugin_list (xine_sa /* free info structure and string copies */ free (node->info->id); free (node->info); + + if (node->config_entry_list) { + xine_list_delete(node->config_entry_list); + } free (node); } xine_sarray_delete(list); |