Skip to content

Commit

Permalink
input: remove iput_item_t.i_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Nov 15, 2016
1 parent 014d77b commit ef49326
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions include/vlc_input_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
2 changes: 1 addition & 1 deletion modules/gui/qt/dialogs/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
Expand Down
3 changes: 0 additions & 3 deletions src/input/item.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit ef49326

Please sign in to comment.