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

Use vlc_object_get_name()

parent 940efdbd
......@@ -1453,11 +1453,11 @@ static void MainBoxWrite( intf_thread_t *p_intf, int l, int x, const char *p_fmt
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 );
......
......@@ -278,11 +278,12 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
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) + ")" );
......
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