Commit c3102ca4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use module_* functions

parent fb3ee6ab
...@@ -346,13 +346,11 @@ mvar_t *E_(mvar_ObjectSetNew)( intf_thread_t *p_intf, char *psz_name, ...@@ -346,13 +346,11 @@ mvar_t *E_(mvar_ObjectSetNew)( intf_thread_t *p_intf, char *psz_name,
for( i = 0; i < p_list->i_count; i++ ) for( i = 0; i < p_list->i_count; i++ )
{ {
module_t *p_parser = (module_t *)p_list->p_values[i].p_object; module_t *p_parser = (module_t *)p_list->p_values[i].p_object;
if( !strcmp( p_parser->psz_capability, psz_capability ) ) if( module_IsCapable( p_parser, psz_capability ) )
{ {
mvar_t *sd = E_(mvar_New)( "sd", p_parser->psz_object_name ); mvar_t *sd = E_(mvar_New)( "sd", module_GetObjName( p_parser ) );
E_(mvar_AppendNewVar)( sd, "name", E_(mvar_AppendNewVar)( sd, "name",
p_parser->psz_longname ? p_parser->psz_longname module_GetName( p_parser, VLC_TRUE ) );
: ( p_parser->psz_shortname ? p_parser->psz_shortname
: p_parser->psz_object_name ) );
E_(mvar_AppendVar)( s, sd ); E_(mvar_AppendVar)( s, sd );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment