static void DumpObject( intf_thread_t *p_intf, int *l, vlc_object_t *p_obj, int i_level )
{
- /*if( p_obj->psz_object_name )
+ const char *psz_name = vlc_object_get_name( p_obj );
+ if( psz_name )
MainBoxWrite( p_intf, (*l)++, 1 + 2 * i_level, "%s \"%s\" (%p)",
- p_obj->psz_object_type, p_obj->psz_object_name,
- p_obj );
- else*/
+ p_obj->psz_object_type, psz_name, p_obj );
+ else
MainBoxWrite( p_intf, (*l)++, 1 + 2 * i_level, "%s (%o)",
p_obj->psz_object_type, p_obj );
else
item = new QTreeWidgetItem( modulesTree );
- /*if( p_obj->psz_object_name )
+ const char *name = vlc_object_get_name( p_obj );
+ if( name != NULL )
item->setText( 0, qfu( p_obj->psz_object_type ) + " \"" +
- qfu( p_obj->psz_object_name ) + "\" (" +
+ qfu( name ) + "\" (" +
QString::number((uintptr_t)p_obj) + ")" );
- else*/
+ else
item->setText( 0, qfu( p_obj->psz_object_type ) + " (" +
QString::number((uintptr_t)p_obj) + ")" );