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

input: remove iput_item_t.i_id

parent 014d77b7
......@@ -57,8 +57,6 @@ struct info_category_t
*/
struct input_item_t
{
int i_id; /**< Identifier of the item */
char *psz_name; /**< text describing this item */
char *psz_uri; /**< mrl of this item */
......
......@@ -363,7 +363,7 @@ static QTreeWidgetItem * PLWalk( playlist_item_t *p_node )
current->setText( 0, qfu( p_node->p_input->psz_name ) );
current->setToolTip( 0, qfu( p_node->p_input->psz_uri ) );
current->setText( 1, QString("%1").arg( p_node->i_id ) );
current->setText( 2, QString("%1").arg( p_node->p_input->i_id ) );
current->setText( 2, QString("%1").arg( (uintptr_t)p_node->p_input ) );
current->setText( 3, QString("0x%1").arg( p_node->i_flags, 0, 16 ) );
current->setText( 4, QString("0x%1").arg( p_node->p_input->i_type, 0, 16 ) );
for ( int i = 0; p_node->i_children > 0 && i < p_node->i_children; i++ )
......
......@@ -1014,8 +1014,6 @@ input_item_t *
input_item_NewExt( const char *psz_uri, const char *psz_name,
mtime_t duration, int type, enum input_item_net_type i_net )
{
static atomic_uint last_input_id = ATOMIC_VAR_INIT(0);
input_item_owner_t *owner = calloc( 1, sizeof( *owner ) );
if( unlikely(owner == NULL) )
return NULL;
......@@ -1025,7 +1023,6 @@ input_item_NewExt( const char *psz_uri, const char *psz_name,
input_item_t *p_input = &owner->item;
vlc_event_manager_t * p_em = &p_input->event_manager;
p_input->i_id = atomic_fetch_add(&last_input_id, 1);
vlc_mutex_init( &p_input->lock );
p_input->psz_name = NULL;
......
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