- unsigned int confsize;
- p_module = (module_t *)p_list->p_values[i_index].p_object;
-
- /* Exclude the main module */
- if( !strcmp( module_GetObjName( p_module ), "main" ) )
- continue;
-
- /* Exclude empty plugins (submodules don't have config */
- /* options, they are stored in the parent module) */
-// Does not work
-// if( modules_IsSubModule( p_module ) )
-// continue;
- p_item = module_GetConfig( p_module, &confsize );
-
- if( !p_item ) continue;
- int i_category = -1;
- int i_subcategory = -1;
- int i_options = 0;
- do
- {
- if( p_item->i_type == CONFIG_CATEGORY )
- i_category = p_item->value.i;
- else if( p_item->i_type == CONFIG_SUBCATEGORY )
- i_subcategory = p_item->value.i;
-
- if( p_item->i_type & CONFIG_ITEM )
- i_options ++;
- if( i_options > 0 && i_category >= 0 && i_subcategory >= 0 )
- break;
- } while( p_item < p_end && p_item++ );
- if( !i_options ) continue;
-
- /* Find the right category item */
-
- long cookie;
- vlc_bool_t b_found = VLC_FALSE;
- unsigned int i;
- VLCTreeItem* p_category_item, * p_subcategory_item;
- for (i = 0 ; i < [o_children count] ; i++)
+ if( p_item->i_type == CONFIG_CATEGORY )
+ i_category = p_item->value.i;
+ else if( p_item->i_type == CONFIG_SUBCATEGORY )
+ i_subcategory = p_item->value.i;
+
+ if( p_item->i_type & CONFIG_ITEM )
+ i_options ++;
+ if( i_options > 0 && i_category >= 0 && i_subcategory >= 0 )
+ break;
+ } while( p_item < p_end && p_item++ );
+ if( !i_options ) continue;
+
+ /* Find the right category item */
+
+ long cookie;
+ vlc_bool_t b_found = VLC_FALSE;
+ unsigned int i;
+ VLCTreeItem* p_category_item, * p_subcategory_item;
+ for (i = 0 ; i < [o_children count] ; i++)
+ {
+ p_category_item = [o_children objectAtIndex: i];
+ if( p_category_item->i_object_id == i_category )